I have this issue on my website, i fire the scroll to top smootly when i scroll back to the top from the footer of my div, but if I try to scroll too fast, sometimes the go to top smoothly effect doesn't work properly. I use vue.js. I tried to replicate the issue in this code pen, but it seems to be working fine there, instead on my application i have this error that the scroll to top does not work everytime that i fire the onLeaveBack function. Any Idea why? thank you so much.