mirror of
https://github.com/penpot/penpot.git
synced 2026-05-03 15:18:59 +00:00
Properly handle selrect double initialization.
This issue is happens when user emits mouse-up event out of workspace, that is not captured by stoper stream, and then user need to initialie and stop again the selrect. The double initialization is not an issue but that was raising unexpected exception and this commit fixes that.
This commit is contained in:
parent
d57a71b8d6
commit
9f9bff17e5
@ -214,7 +214,7 @@
|
||||
(st/emit! (uev/mouse-event :down ctrl? shift?)))
|
||||
(if drawing
|
||||
(st/emit! (udw/start-drawing drawing))
|
||||
(st/emit! (udw/start-selrect))))
|
||||
(st/emit! ::uev/interrupt (udw/start-selrect))))
|
||||
(on-context-menu [event]
|
||||
(dom/prevent-default event)
|
||||
(dom/stop-propagation event)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user