mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
Minor fix on ruler ctrl mode.
This commit is contained in:
parent
bafc486401
commit
e727c124c7
1 changed files with 2 additions and 2 deletions
|
@ -67,8 +67,8 @@
|
|||
(letfn [(on-value [[[x y :as pos] ctrl?]]
|
||||
(if ctrl?
|
||||
(let [[sx sy] (:pos1 @local)
|
||||
dx (- x sx)
|
||||
dy (- y sy)]
|
||||
dx (mth/abs (- x sx))
|
||||
dy (mth/abs (- y sy))]
|
||||
(cond
|
||||
(> dx dy) (swap! local assoc :pos2 [x sy])
|
||||
(> dy dx) (swap! local assoc :pos2 [sx y])
|
||||
|
|
Loading…
Reference in a new issue