mirror of
https://github.com/penpot/penpot.git
synced 2026-03-06 02:01:09 +00:00
🐛 Fixes problem with scrollIntoView
This commit is contained in:
@@ -192,7 +192,7 @@
|
||||
(mf/deps selected)
|
||||
(fn []
|
||||
(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
|
||||
:ref dref
|
||||
|
||||
Reference in New Issue
Block a user