mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 22:53:02 +00:00
Minor fix on ruler ctrl mode.
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user