Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Controlling what scroll position is saved  #2403

Copy link
Copy link
Open
@posva

Description

@posva
Issue body actions

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 feedbackThis problem still needs more feedbackenhancementNew feature or requestNew feature or request

    Type

    No type

    Projects

    Status

    💬 In discussion
    Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.