Closed daun closed 1 year ago
shouldResetScrollPosition
ignoreVisit
options = { shouldResetScrollPosition: (url: string, { el, event }: { el?: Element; event?: Event }) => boolean }
How important is this feature to you?
Just realized this is completely obsolete in swup 4 — we can just set context.scroll.reset to false in the transitionStart hook.
context.scroll.reset
false
transitionStart
shouldResetScrollPosition
passes in a link elementignoreVisit
probably makes sense to emulate hereHow important is this feature to you?