Post

Currently redesigning `scrollBehavior` in vue-router. What are you missing today? Currently planned - Allow saving multiple positions - Custom capture and restore functions to use scrollIntoView and others - Session history instead of history state - Custom keying of entries (same url = same scroll)

Can behavior in scrollBehavior accept the full CSS ScrollBehavior type and just pass it through? I remeber one time spending like 20 min fighting it once for a slower smooth scroll, convinced I'd written the class wrong πŸ˜… just a one-off from a couple years ago though.

It already reuses that type and passes as is to window.scrollTo I was thinking of keeping it that way the value 'auto' (default) relies on the CSS. Isn't that what you want?

0 reposts1 like

No replies yet.