Commit 44b4afe
committed
fix(canvas): clear snap highlight after every paint
The NEAR_VERTEX highlight set on self.current during snap persisted on
the shape state between events. Any repaint that fired without a
preceding mouseMoveEvent (scroll, zoom, resize, window expose) would
redraw the stale white circle at vertex 0 even though the cursor had
moved far away from the snap range.
Clear self.current's highlight at the end of paintEvent so transient
snap state never survives across paint events. mouseMoveEvent sets it
again on every move, so the live snap indicator still shows correctly.
(cherry picked from commit fcb3a8e)1 parent fb5ce6f commit 44b4afe
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
389 | 388 | | |
390 | 389 | | |
391 | 390 | | |
| |||
895 | 894 | | |
896 | 895 | | |
897 | 896 | | |
| 897 | + | |
| 898 | + | |
898 | 899 | | |
899 | 900 | | |
900 | 901 | | |
| |||
923 | 924 | | |
924 | 925 | | |
925 | 926 | | |
| 927 | + | |
| 928 | + | |
926 | 929 | | |
927 | 930 | | |
928 | 931 | | |
| |||
0 commit comments