mirror of
https://github.com/penpot/penpot.git
synced 2025-05-21 00:26:11 +02:00
🐛 Fix problems with double-click and selection
This commit is contained in:
parent
01d99222e0
commit
40130d1ca7
3 changed files with 15 additions and 14 deletions
|
@ -194,7 +194,7 @@
|
|||
:else
|
||||
(let [;; We only get inside childrens of the hovering shape
|
||||
hover-ids (->> @hover-ids (filter (partial cph/is-child? objects id)))
|
||||
selected (get objects (if (> (count hover-ids) 1) (second hover-ids) (first hover-ids)))]
|
||||
selected (get objects (first hover-ids))]
|
||||
(when (some? selected)
|
||||
(reset! hover selected)
|
||||
(st/emit! (dw/select-shape (:id selected)))))))))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue