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:
parent
b78d9dcc52
commit
c8d3975680
1 changed files with 2 additions and 5 deletions
|
@ -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))))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue