Share Posted March 10 Hi guys. I have a little "problem" that I am trying to solve. If there is a way, for now I am out of ideas. If anyone could pitch in, would be really awesome! Attached is the observer demo where I added just timescale for the timeline, to demonstrate my struggle. I do have some animations tied to the wheel event, that are pretty short > 0.5/1s each. I do want the wheel control the animations but the problem I am facing is while using touchpad / mouse that has infinite scroll enabled. This is causing that when I scroll too fast / swipe fingers on the touchbar aggressively, the animations are playing as in "loop". I was looking for a solution to actually run the "next" animation only, when person does another scroll / swipe and ignore it while the previous callback is being fired. For now, I am simply flagging variable to prevent this - in the "onDown" and "onUp" = true, and then in "onEnd" = false. This somehow works, but if I continuously swipe on touchbar, the "onEnd" never fires and no animations is done (as expected) Is there any possibility to get something as "onWheelStart" event? Is it even possible? Thanks for any suggestions [EDIT] Playing with wheelSpeed, tolerance and onStopDelay seems to resolve my case. See the Pen vYzpgQM by Palke (@Palke) on CodePen Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now