Commit 8b39e14
committed
paint-round-corners: fix widget positions not updating on zoom/pan
Added a rAF loop (same pattern as paint-gradient-editor) that watches
paper.view.matrix while the tool is active. When zoom or pan changes
the matrix key, drawWidgets() is called to reposition all corner handles.
The loop exits immediately when isToolActive is false, so there is no
overhead once the tool is deactivated.1 parent c26d7cf commit 8b39e14
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
722 | 737 | | |
723 | 738 | | |
724 | 739 | | |
| |||
0 commit comments