Closed
Description
Hi. We have various issues reported for scrollBehavior
not behaving as desired. Maybe use-cases differ but almost all of them are related to the same known issue and we are aware and plan to help fixing it. Please don't make/reopen duplicated issues as there is enough info about the problem.It just makes the process harder. As of always contributions and PRs are appreciated to both vue-router
and nuxt
for possible fixes.
vue-router
- Handle scrollBehaviour with transitions (Handle scrollBehaviour with transitions vuejs/vue-router#1263)
- Another detail of scrollBehavior wrapped in transition(Another detail of scrollBehavior wrapped in transition vuejs/vue-router#1373)
- scrollBehavior doesn't work for initial route in Firefox (scrollBehavior doesn't work for initial route in Firefox vuejs/vue-router#1585)
- Need a way to set what scroll position is saved (Need a way to set what scroll position is saved vuejs/vue-router#1187)
- Navigating back should retain the scroll position. (Navigating back should retain the scroll position. vuejs/vue-router#1669)
- Support parent container for scroll behavior (Support parent container for scroll behavior vuejs/vue-router#1249)
- Calcurated scroll position is incorrect in some browser with animation (calculated scroll position is incorrect in some browser with animation vuejs/vue-router#1530)
Issues
- Strange behavior in Firefox browser when page transition (Strange behavior in Firefox browser when page transition. #1373)
- What causes a glitch when page transition in Firefox? (What cause a glitch when page transition in Firefox? #1002)
- Delayed scroll top possible? (Delayed scroll top possible? #1355)
- ScrollBehavior: Fires too early (scrollBehavior: Fires too early #1036)
- Navigating back should retain the scroll position. (Navigating back should retain the scroll position. #1182)
Reproductions
- https://github.com/krestaino/scroll-position-nuxt (@krestaino, Navigating back should retain the scroll position. #1182)
- http://jsfiddle.net/qw4hbgek (@posva, Handle scrollBehaviour with transitions vuejs/vue-router#1263)
- http://jsfiddle.net/xctnu8r3/2 (@nickforddesign , Another detail of scrollBehavior wrapped in transition vuejs/vue-router#1373)
- https://github.com/vuejs/vue-router/tree/dev/examples/scroll-behavior (@hworld, scrollBehavior doesn't work for initial route in Firefox vuejs/vue-router#1585)
- http://codepen.io/brad426/pen/pezRge (@brad426)