Tutorial :How do I use javascript control ipad to scroll uniformly (without friction)



Question:

I would need to listen to onscroll, and know how fast it is scrolling. Any one have any ideas how this should be implemented? By using onmousedown and onmouseup? And how should I calculate the speed?


Solution:1

I believe iScroll might be of help. It provides a way to scroll content inside a fixed width/height element. You should be able to disable the change in speed as it nears the end of a scroll.

You can find more information on it here:

http://cubiq.org/iscroll


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »