Skip to content

Controlling what scroll position is saved  #2403

Open
@posva

Description

@posva

Controlling what scroll position is saved
RFC at vuejs/rfcs#38 is not flexible enough: what about named views, what about scrolling multiple elements in the page.
A better option could be customising the computation of the scrollPosition saved in the history state as well as the restoration of that given scrollPosition. This would be a replacement for current scrollBehavior option and maybe we could internally refactor ours to do that

Another possibility is to move this to an official plugin similar to https://github.com/antfu/vue-router-better-scroller

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionThis problem still needs more feedbackenhancementNew feature or request

    Type

    No type

    Projects

    • Status

      💬 In discussion

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions