forcedotcom / scrollerjs

A JavaScript library that helps you build performant UI components for the web.
http://scrollerjs.com
Apache License 2.0
637 stars 63 forks source link

Momentum distance slowdown #4

Open jtangelder opened 9 years ago

jtangelder commented 9 years ago

Sometimes the velocity/distance calculation is a bit off scale, and the scroller just shoots out and goes nuts! Some kind of slowdown math would fix this... I thought it would be an issue with a too high velocity value, but the value looks correct to me!

Must be something at https://github.com/forcedotcom/scrollerjs/blob/master/src/scroller.js#L1107

I guess you've noticed this too, but just want to mention it. :+1:

karneaud commented 9 years ago

Bump!

diervo commented 9 years ago

I'm not sure what is exactly the problem to be able to fix it. Any example will help (or video)

netgfx commented 9 years ago

yes this is indeed an issue, it would help if we could define a max-velocity property, I understand this might be against the formula of the gesture calculation but too fast scrolling is breaking user experience (user has to be able to read what he is scrolling through)