mirror of
https://github.com/penpot/penpot.git
synced 2026-09-08 21:19:49 +00:00
🐛 Fixes problem with scrollIntoView
This commit is contained in:
parent
f4af0b0420
commit
33908413d6
@ -192,7 +192,7 @@
|
|||||||
(mf/deps selected)
|
(mf/deps selected)
|
||||||
(fn []
|
(fn []
|
||||||
(when (and (= (count selected) 1) selected?)
|
(when (and (= (count selected) 1) selected?)
|
||||||
(.scrollIntoView (mf/ref-val dref) false))))
|
(.scrollIntoView (mf/ref-val dref) #js {:block "nearest", :behavior "smooth"}))))
|
||||||
|
|
||||||
[:li {:on-context-menu on-context-menu
|
[:li {:on-context-menu on-context-menu
|
||||||
:ref dref
|
:ref dref
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user