We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f0c42e + b45f444 commit 4742660Copy full SHA for 4742660
src/core/event/scroll.js
@@ -18,7 +18,8 @@ function scrollTo(el, offset = 0) {
18
enableScrollEvent = false;
19
scroller = new Tweezer({
20
start: window.pageYOffset,
21
- end: el.getBoundingClientRect().top + window.pageYOffset - offset,
+ end:
22
+ Math.round(el.getBoundingClientRect().top) + window.pageYOffset - offset,
23
duration: 500,
24
})
25
.on('tick', v => window.scrollTo(0, v))
0 commit comments