From 82d744b94a1e9fa5c2afba011cdbbaed0d402382 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 9 May 2022 17:50:34 +0200 Subject: [PATCH] :bug: Fix problem with scrolling on already visible layers --- frontend/src/app/main/ui/workspace/sidebar/layers.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))))