mirror of
https://github.com/penpot/penpot.git
synced 2025-05-20 03:46:10 +02:00
🐛 Fix scroll jumps in handoff mode
This commit is contained in:
parent
edaef0096a
commit
b4accaad07
2 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,7 @@
|
|||
(mf/deps selected)
|
||||
(fn []
|
||||
(when (and (= (count selected) 1) selected?)
|
||||
(.scrollIntoView (mf/ref-val item-ref) false))))
|
||||
(dom/scroll-into-view-if-needed! (mf/ref-val item-ref) true))))
|
||||
|
||||
[:li {:ref item-ref
|
||||
:class (dom/classnames
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue