For this example:
1. Click "scroll" button
2. Go back to top
3. Keep clicking "scroll" button
In the console, I am printing out the event listener for the "onScroll" function which is tracking the window scroll.
For some reason when the "onComplete" fires after the scroll is done, the "onScroll" function randomly sometimes runs again.
The last console log, will randomly sometimes randomly change to "false". Even though i would expect the behavior to always be "true". It seems that the "false" can be triggered randomly.
I am wondering if this behavior can be worked around?
Thank you