From 3c2421d8755a54c38c343bd4ea4ae5b29c202b19 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 13 Dec 2017 09:19:49 +0300 Subject: [PATCH] always scroll to the style on "history back" from editor to manager --- manage/manage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manage/manage.js b/manage/manage.js index 71c31798..a521de74 100644 --- a/manage/manage.js +++ b/manage/manage.js @@ -131,7 +131,7 @@ function showStyles(styles = []) { requestAnimationFrame(renderStyles); return; } - if ('scrollY' in (history.state || {})) { + if ('scrollY' in (history.state || {}) && !sessionStorage.justEditedStyleId) { setTimeout(window.scrollTo, 0, 0, history.state.scrollY); } if (newUI.enabled && newUI.favicons) {