Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No documentation and how to define behaviour #5

Closed
techntrails opened this issue Jul 6, 2017 · 1 comment
Closed

No documentation and how to define behaviour #5

techntrails opened this issue Jul 6, 2017 · 1 comment

Comments

@techntrails
Copy link

There's no documentation that I can see on how to actually define if behaviour is scroll to top or preserve the scrolling

@jeneser
Copy link
Owner

jeneser commented Jul 7, 2017

Thanks for opening an issue with me.
Right, This document needs to be improved. I added the following instructions:

vue-scroll-behavior allows you to customize the scrolling position on route navigation. Especially hash mode. You just need to tell it which routes need to be processed, and it will do that automatically

If you have some special scenes, we also provide some options, and you can manually use them to save or restore the scroll position

By default, It will scroll to the saved position. If you ignore some routes, they will directly scroll to the top. If you have some special scenes, we also provide some options, and you can manually use them to save or restore the scroll position.
But, some options, I haven't finalized yet. You can check the below issue: #3
If you have any good ideas, please let me know.

Thanks.

@jeneser jeneser closed this as completed Jul 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants