mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 04:49:03 -05:00
🐛 Fixes problem with scrollIntoView
This commit is contained in:
parent
f4af0b0420
commit
33908413d6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue