mirror of
https://github.com/penpot/penpot.git
synced 2025-05-08 20:35:55 +02: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)
|
startx (* c/canvas-start-x zoom)
|
||||||
starty (* c/canvas-start-y zoom)]
|
starty (* c/canvas-start-y zoom)]
|
||||||
(assoc rect
|
(assoc rect
|
||||||
:x (- (:x rect) startx)
|
:x (/ (- (:x rect) startx) zoom)
|
||||||
:y (- (:y rect) starty)
|
:y (/ (- (:y rect) starty) zoom)
|
||||||
:width (/ (:width rect) zoom)
|
:width (/ (:width rect) zoom)
|
||||||
:height (/ (:height rect) zoom))))
|
:height (/ (:height rect) zoom))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue