Replies: 1 comment 1 reply
-
Okay, I found this https://kit.svelte.dev/docs/modules#$app-navigation-disablescrollhandling 😮💨🙇🏽, which does fix my issue but is not a recommended solution. Is it the only option to disable scrolling behaviour when navigating to a page, using browser navigation buttons? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am aware of:
goto
's `noscroll behaviour.but even if I disable scroll for these two, when trying to directly navigate back/forward a page using Browser navigation, the page scrolls to the top during navigation.
Since I am using smooth scroll behaviour, the navigation looks pretty uncomfortable and slow.
Q. Is there a way to disable scroll animation completely for browser back/forward button clicks as well?
Beta Was this translation helpful? Give feedback.
All reactions