fix: multi-cell tile drag snaps by module position, not mouse

_end_drag now calculates the target grid cell from the module's visual
top-left position (mouse_pos - grab_offset) instead of the raw mouse
position. This prevents multi-cell tiles from jumping an extra cell when
grabbed near an edge.
This commit is contained in:
Eric Smith 2026-05-21 09:09:43 -04:00
parent db0c6780df
commit 6aba0e23d0
2 changed files with 10 additions and 5 deletions

View file

@ -1,7 +1,7 @@
[layout]
name="Main"
saved_at="2026-05-21T09:03:37"
saved_at="2026-05-21T09:09:37"
[tiles]
@ -27,6 +27,6 @@ h=1
id="system_monitor/testing"
col=2
row=1
row=0
w=1
h=2