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

Limit axes for performance? #11

Closed gyopiazza closed 8 years ago

gyopiazza commented 8 years ago

First of all thanks for this little gem. It runs incredibly smooth and I was wondering if it makes sense to add a setting which limits the scrolling axes (x, y or both) to improve the performance even more when just one axis is needed.

Thank you!

chrisbateman commented 8 years ago

Thank you very much, I appreciate the compliment!

This is a good thought, but I'm guessing that it may not make a notable difference. In the spirit of avoiding premature optimization, I'll hold off on this unless there's some data to show otherwise.