mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -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:
commit
c6f74692ba
1 changed files with 4 additions and 1 deletions
|
@ -241,7 +241,10 @@
|
|||
:on-pointer-enter on-pointer-enter
|
||||
:on-pointer-leave on-pointer-leave
|
||||
: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
|
||||
:name-ref ref
|
||||
:on-start-edit #(reset! disable-drag true)
|
||||
|
|
Loading…
Reference in a new issue