Jump to content
Search Community

inter123

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by inter123

  1. Thank you for the detailed explanation, makes perfect sense. I just wanted to be sure I was understanding the behavior correctly. I believe your ideas will definitely help.
  2. Hi Zach thank you for the response. My main question goes along the lines of: 1. onComplete fires after scrollTo is done and scrolling has supposedly stopped 2. my onComplete sets the variable: scrolling = false 3. How does "window onScroll" pick up "scrolling = false" sometimes, if supposedly the scrolling has stopped and the variable was not changed until after the scrolling was done?
  3. 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
×
×
  • Create New...