Skip to content

Commit b4a728f

Browse files
committed
Fix scrolling issue breaking navigation on certain pages.
Signed-off-by: bgravenorst <[email protected]>
1 parent 15cf919 commit b4a728f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/client/scroll-fix.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export function onRouteDidUpdate({ location, previousLocation }) {
1010
bounding.bottom <= (window.innerHeight || document.documentElement.clientHeight)
1111
if (!isVisible) {
1212
item.scrollIntoView({ block: 'start', inline: 'nearest' })
13-
window.scrollTo(0, 0)
1413
}
1514
}
1615

0 commit comments

Comments
 (0)