Skip to content

Commit

Permalink
fix(scroll): always offset if set
Browse files Browse the repository at this point in the history
  • Loading branch information
BowlingX committed Aug 24, 2016
1 parent 51c330b commit 511e5f4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/util/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,7 @@ class Util {
thisOffset = optionalOffset();
}
const scrolledY = window.pageYOffset;
if (scrolledY) {
window.scroll(0, scrolledY - thisOffset);
}
window.scroll(0, scrolledY - thisOffset);
}
}
}
Expand Down

0 comments on commit 511e5f4

Please sign in to comment.