Got it, thanks. A related question about my aforementioned example:
If the window scrollbar is tweening and the user grabs the scrollbar, I want to stop the tween.
I was planning to accomplish this by noting the scrollTop position of the scrollable div before the animation, and during the animation update this value in the onUpdate callback. Also in the onUpdate callback, I was planning on checking if scrollTop was a different value than it was last step of the tween, indicating something else had moved the scrollbar.
However, since onUpdate is called after the new value is set, I am not sure where to make this check to stop the tween. Is there a way to get a callback before the new value is updated, or to get the previous value in onUpdate? Or maybe there is a different way to solve this problem.
Thank you.