0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

🐛 Fixes problem with scrollIntoView

This commit is contained in:
alonso.torres 2020-10-27 17:32:58 +01:00 committed by Hirunatan
parent f4af0b0420
commit 33908413d6

View file

@ -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