mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 17:00:36 -05:00
🐛 Fixes problem with closing paths
This commit is contained in:
parent
e17ab24e66
commit
6e8cdd764a
2 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@
|
||||||
|
|
||||||
(def handle-drawing-path
|
(def handle-drawing-path
|
||||||
(letfn [(stoper-event? [{:keys [type shift] :as event}]
|
(letfn [(stoper-event? [{:keys [type shift] :as event}]
|
||||||
(or (= event ::end-path-drawing)
|
(or (= event :path/end-path-drawing)
|
||||||
(and (ms/mouse-event? event)
|
(and (ms/mouse-event? event)
|
||||||
(or (and (= type :double-click) shift)
|
(or (and (= type :double-click) shift)
|
||||||
(= type :context-menu)))
|
(= type :context-menu)))
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
(dom/stop-propagation event)
|
(dom/stop-propagation event)
|
||||||
(st/emit! (dw/assign-cursor-tooltip nil)
|
(st/emit! (dw/assign-cursor-tooltip nil)
|
||||||
dd/close-drawing-path
|
dd/close-drawing-path
|
||||||
::end-path-drawing))
|
:path/end-path-drawing))
|
||||||
|
|
||||||
on-mouse-enter
|
on-mouse-enter
|
||||||
(fn [event]
|
(fn [event]
|
||||||
|
|
Loading…
Reference in a new issue