mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
Keep ruler active until an other click.
This commit is contained in:
parent
e727c124c7
commit
774c395a7f
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@
|
||||||
(defn- on-mouse-up
|
(defn- on-mouse-up
|
||||||
[own local event]
|
[own local event]
|
||||||
(dom/stop-propagation event)
|
(dom/stop-propagation event)
|
||||||
(reset! local {:active false}))
|
(swap! local assoc :active false))
|
||||||
|
|
||||||
(defn- overlay-render
|
(defn- overlay-render
|
||||||
[own local]
|
[own local]
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
[:rect {:style {:fill "transparent" :stroke "transparent" :cursor "cell"}
|
[:rect {:style {:fill "transparent" :stroke "transparent" :cursor "cell"}
|
||||||
:width wb/viewport-width
|
:width wb/viewport-width
|
||||||
:height wb/viewport-height}]
|
:height wb/viewport-height}]
|
||||||
(if (and (:active @local) x1 x2)
|
(if (and x1 x2)
|
||||||
[:g
|
[:g
|
||||||
[:line {:x1 x1 :y1 y1 :x2 x2 :y2 y2
|
[:line {:x1 x1 :y1 y1 :x2 x2 :y2 y2
|
||||||
:style {:cursor "cell"}
|
:style {:cursor "cell"}
|
||||||
|
|
Loading…
Reference in a new issue