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 (vuejs/vue-router#1263)
- Another detail of scrollBehavior wrapped in transition(vuejs/vue-router#1373)
- scrollBehavior doesn't work for initial route in Firefox (vuejs/vue-router#1585)
- Need a way to set what scroll position is saved (vuejs/vue-router#1187)
- Navigating back should retain the scroll position. (vuejs/vue-router#1669)
- Support parent container for scroll behavior (vuejs/vue-router#1249)
- Calcurated scroll position is incorrect in some browser with animation (vuejs/vue-router#1530)
Issues
- Strange behavior in Firefox browser when page transition (#1373)
- What causes a glitch when page transition in Firefox? (#1002)
- Delayed scroll top possible? (#1355)
- ScrollBehavior: Fires too early (#1036)
- Navigating back should retain the scroll position. (#1182)
Reproductions
Misc
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This bug report is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1219">#c1219</a>)</em></sub></div>