0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 15:39:50 -05:00

Merge pull request #2111 from andrewzhurov/1962-double-click-icon-in-navigation-pane-to-focus-on-object-or-artboard

🎉 Add zoom to shape on double click upon its icon in navigation pane
This commit is contained in:
Andrey Antukh 2022-07-29 08:17:30 +02:00 committed by GitHub
commit c6f74692ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,7 +241,10 @@
:on-pointer-enter on-pointer-enter :on-pointer-enter on-pointer-enter
:on-pointer-leave on-pointer-leave :on-pointer-leave on-pointer-leave
:on-double-click #(dom/stop-propagation %)} :on-double-click #(dom/stop-propagation %)}
[:& si/element-icon {:shape item}] [:div {:on-double-click #(do (dom/stop-propagation %)
(dom/prevent-default %)
(st/emit! dw/zoom-to-selected-shape))}
[:& si/element-icon {:shape item}]]
[:& layer-name {:shape item [:& layer-name {:shape item
:name-ref ref :name-ref ref
:on-start-edit #(reset! disable-drag true) :on-start-edit #(reset! disable-drag true)