fix: fix spells (#362)

This commit is contained in:
Rubin Bhandari
2024-10-24 06:00:28 +05:45
committed by GitHub
parent 16ec78f30b
commit c247606baa
6 changed files with 6 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ export const openMenu = async (clicked: Button<Child, Attribute>, event: Gdk.Eve
/*
* NOTE: We have to make some adjustments so the menu pops up relatively
* to the center of the button clicked. We don't want the menu to spawn
* offcenter dependending on which edge of the button you click on.
* offcenter depending on which edge of the button you click on.
* -------------
* To fix this, we take the x coordinate of the click within the button's bounds.
* If you click the left edge of a 100 width button, then the x axis will be 0