mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -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?]]
|
(letfn [(on-value [[[x y :as pos] ctrl?]]
|
||||||
(if ctrl?
|
(if ctrl?
|
||||||
(let [[sx sy] (:pos1 @local)
|
(let [[sx sy] (:pos1 @local)
|
||||||
dx (- x sx)
|
dx (mth/abs (- x sx))
|
||||||
dy (- y sy)]
|
dy (mth/abs (- y sy))]
|
||||||
(cond
|
(cond
|
||||||
(> dx dy) (swap! local assoc :pos2 [x sy])
|
(> dx dy) (swap! local assoc :pos2 [x sy])
|
||||||
(> dy dx) (swap! local assoc :pos2 [sx y])
|
(> dy dx) (swap! local assoc :pos2 [sx y])
|
||||||
|
|
Loading…
Reference in a new issue