chrisbateman / impetus

Agnostic utility for adding momentum to anything. It's like iScroll, except not for scrolling. Supports mouse and touch events.
chrisbateman.github.io/impetus
MIT License
487 stars 70 forks source link

Emit an event called `momentumend` when momentum stops #25

Closed igghera closed 7 years ago

igghera commented 8 years ago

In an application I'm building, I needed to know when the deceleration had completed. To do so, I added this event so I could listen for it from outside and do my things as needed. Nothing fancy, just something I reckon could be useful for other people, hence the pull request.

chrisbateman commented 7 years ago

Sorry, but I'd like to keep support for at least IE 11, so I'm not sure that new Event will cut it. Not sure what mobile support looks like either.

Might just be easier to go with callbacks instead...