From e727c124c7e61e4027cdf9148b0ca0dbd09e018c Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sun, 31 Jan 2016 17:38:57 +0200 Subject: [PATCH] Minor fix on ruler ctrl mode. --- src/uxbox/ui/workspace/canvas/ruler.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uxbox/ui/workspace/canvas/ruler.cljs b/src/uxbox/ui/workspace/canvas/ruler.cljs index 828af58d2..0ac4e7411 100644 --- a/src/uxbox/ui/workspace/canvas/ruler.cljs +++ b/src/uxbox/ui/workspace/canvas/ruler.cljs @@ -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])