-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Another detail of scrollBehavior wrapped in transition #1373
Comments
Fixing this should also fix #1263 |
Experiencing the same problem as described above |
me too |
i ended up using transition hook :)
|
I think this shows a little bit more the issue: http://jsfiddle.net/9hvo46o1/1/ |
Hi @atinux I've never used Nuxt so i'm not familiar with the problem there but |
Closing as dup of #1263 |
Version
2.5.2
Reproduction link
http://jsfiddle.net/xctnu8r3/2/
Steps to reproduce
Wrapping a
router-view
in a 2-way transition (like a fade), andscrollBehavior
returns{ x: 0, y: 0 }
.Click Post 1, scroll down just a little, then click Home.
What is expected?
Scrolling shouldn't take place until after the in-out transition has completed.
What is actually happening?
The
router-view
scrolls to the top immediately, before the transition begins, resulting in an undesirable content flicker (which looks much worse in a real scenario with actual content).The text was updated successfully, but these errors were encountered: