From abd7a88ba0ca1a89a9374e97620e2d3ccbb707aa Mon Sep 17 00:00:00 2001 From: Eva Date: Mon, 4 Apr 2022 12:25:27 +0200 Subject: [PATCH] :bug: Fix scroll into view behing fixed element --- CHANGES.md | 1 + frontend/src/app/main/ui/workspace/sidebar/layers.cljs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 6105f4267..d18eab887 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -44,6 +44,7 @@ ### :bug: Bugs fixed +- Fix scroll into view behind fixed element [Taiga #3170](https://tree.taiga.io/project/penpot/issue/3170) - Fix sidebar icon in viewer mode [Taiga #3184](https://tree.taiga.io/project/penpot/issue/3184) - Fix send to back several shapes at a time [Taiga #3077](https://tree.taiga.io/project/penpot/issue/3077) - Fix duplicate multi selected elements [Taiga #3155](https://tree.taiga.io/project/penpot/issue/3155) diff --git a/frontend/src/app/main/ui/workspace/sidebar/layers.cljs b/frontend/src/app/main/ui/workspace/sidebar/layers.cljs index e9f619f51..3633b1674 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 "nearest", :behavior "smooth"})))] + #(dom/scroll-into-view! node #js {:block "center", :behavior "smooth"})))] #(when (some? subid) (rx/dispose! subid)))))