0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 16:30:37 -05:00

Merge pull request #1822 from penpot/superalex-multiselected-elements-drag-problem-on-empty-areas

🐛 Multiselected elements drag problem on empty areas
This commit is contained in:
Andrey Antukh 2022-04-20 09:16:13 +02:00 committed by GitHub
commit 59310cdd71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)))))))