Repository navigation
Commit 2243f0c
committed
fix(canvas): snap whole-line drag to absolute grid, not delta
Snapping the drag delta meant an off-grid line (e.g. x=11 imported
into a snap=8 grid) would stay off-grid forever — drag delta of 8
yields x=19 instead of grid-aligned x=16. Snap the absolute start
position instead and derive the delta from the snap result, mirroring
the endpoint-handle drag in this same file and the shape/text/image
drag elsewhere.1 parent 0e32253 commit 2243f0c
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
0 commit comments