From 33908413d60977aa5a86a38cd0751289fb90226d Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Tue, 27 Oct 2020 17:32:58 +0100 Subject: [PATCH] :bug: Fixes problem with scrollIntoView --- 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 328ad3997a..e488d0d394 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/layers.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/layers.cljs @@ -192,7 +192,7 @@ (mf/deps selected) (fn [] (when (and (= (count selected) 1) selected?) - (.scrollIntoView (mf/ref-val dref) false)))) + (.scrollIntoView (mf/ref-val dref) #js {:block "nearest", :behavior "smooth"})))) [:li {:on-context-menu on-context-menu :ref dref