0
Fork 0
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:
Andrey Antukh 2016-11-18 20:23:31 +01:00
parent 5fbc2ff6bb
commit f0b6b9363c
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -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))))