From 511e5f4c30efb4f5942fc941229a3ee4426e52d9 Mon Sep 17 00:00:00 2001 From: David Heidrich Date: Thu, 25 Aug 2016 00:01:19 +0200 Subject: [PATCH] fix(scroll): always offset if set --- src/main/util/Util.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/util/Util.js b/src/main/util/Util.js index 517b78b7..41852477 100644 --- a/src/main/util/Util.js +++ b/src/main/util/Util.js @@ -359,9 +359,7 @@ class Util { thisOffset = optionalOffset(); } const scrolledY = window.pageYOffset; - if (scrolledY) { - window.scroll(0, scrolledY - thisOffset); - } + window.scroll(0, scrolledY - thisOffset); } } }