diff --git a/frontend/src/app/main/ui/workspace/sidebar/layers.cljs b/frontend/src/app/main/ui/workspace/sidebar/layers.cljs index 62afe4a1f1..11c31809cd 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/layers.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/layers.cljs @@ -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)))))