0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

🐛 Fix multiselected elements drag problem on empty areas

This commit is contained in:
Alejandro Alonso 2022-04-19 14:20:42 +02:00
parent b78d9dcc52
commit c8d3975680

View file

@ -112,10 +112,7 @@
(when (and left-click?
(not mod?)
(not shift?)
(not @space?)
(or (not @hover)
(= :frame (:type @hover))
(some #(contains? selected %) @hover-ids)))
(not @space?))
(dom/prevent-default bevent)
(dom/stop-propagation bevent)
(st/emit! (dw/start-move-selected)))))))
@ -258,7 +255,7 @@
;; We store this so in Firefox the middle button won't do a paste of the content
(reset! disable-paste true)
(timers/schedule #(reset! disable-paste false)))
(st/emit! (dw/finish-panning)
(dw/finish-zooming))))))