bordoley / reactive-js

Fast modern reactive Javascript programming library
MIT License
11 stars 0 forks source link

useAnimations needs to provide a way to cancel an animation. #461

Closed bordoley closed 1 year ago

bordoley commented 1 year ago

think of the scroll event use cases, if all of sudden the user starts scrolling again, cancel the existing animation.

bordoley commented 1 year ago

only applies to switching mode. basically take a cancel event that publishes empty instead of the animation.

bordoley commented 1 year ago

not needed. can just dispatch an event that doest do anything in switching mode.