mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 10:38:13 -05:00
Fix selrect when zoom is activated.
This commit is contained in:
parent
5fbc2ff6bb
commit
f0b6b9363c
1 changed files with 2 additions and 2 deletions
|
@ -69,8 +69,8 @@
|
|||
startx (* c/canvas-start-x zoom)
|
||||
starty (* c/canvas-start-y zoom)]
|
||||
(assoc rect
|
||||
:x (- (:x rect) startx)
|
||||
:y (- (:y rect) starty)
|
||||
:x (/ (- (:x rect) startx) zoom)
|
||||
:y (/ (- (:y rect) starty) zoom)
|
||||
:width (/ (:width rect) zoom)
|
||||
:height (/ (:height rect) zoom))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue