0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 00:01:51 -05:00

🐛 Fix problem with scrolling on already visible layers

This commit is contained in:
alonso.torres 2022-05-09 17:50:34 +02:00
parent 94d3f66ef1
commit 82d744b94a

View file

@ -189,7 +189,7 @@
(when (and single? selected?)
(ts/schedule
100
#(dom/scroll-into-view! node #js {:block "center", :behavior "smooth"})))]
#(dom/scroll-into-view-if-needed! node #js {:block "center", :behavior "smooth"})))]
#(when (some? subid)
(rx/dispose! subid)))))