Skip to content
Discussion options

You must be logged in to vote

You can disable scroll restoration for each visit. It's right in the docs: Disable scroll reset.

swup.hooks.on('visit:start', (visit) => {
  visit.scroll.reset = false
})

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@bozdevs
Comment options

@daun
Comment options

daun Aug 8, 2024
Maintainer

@bozdevs
Comment options

@daun
Comment options

daun Aug 8, 2024
Maintainer

@bozdevs
Comment options

Answer selected by bozdevs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants