🐛 Fix scroll jumps in handoff mode

This commit is contained in:
alonso.torres 2022-01-12 17:14:06 +01:00
parent edaef0096a
commit b4accaad07
2 changed files with 2 additions and 1 deletions

View file

@ -53,6 +53,7 @@
- Fix default page id in workspace [Taiga #2205](https://tree.taiga.io/project/penpot/issue/2205) - Fix default page id in workspace [Taiga #2205](https://tree.taiga.io/project/penpot/issue/2205)
- Fix problem when importing a file with grids [Taiga #2314](https://tree.taiga.io/project/penpot/issue/2314) - Fix problem when importing a file with grids [Taiga #2314](https://tree.taiga.io/project/penpot/issue/2314)
- Fix issues when updating selrect in paths [Taiga #2366](https://tree.taiga.io/project/penpot/issue/2366) - Fix issues when updating selrect in paths [Taiga #2366](https://tree.taiga.io/project/penpot/issue/2366)
- Fix scroll jumps in handoff mode [Taiga #2383](https://tree.taiga.io/project/penpot/issue/2383)
### :arrow_up: Deps updates ### :arrow_up: Deps updates

View file

@ -59,7 +59,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 item-ref) false)))) (dom/scroll-into-view-if-needed! (mf/ref-val item-ref) true))))
[:li {:ref item-ref [:li {:ref item-ref
:class (dom/classnames :class (dom/classnames