It works fantastic in "reverse" mode (dragging down moves the page up, dragging right moves the page left), but the standard mode, which truly mimics iPhone or Android scrolling, is a little sticky... If anyone can find a solution, please contact me!
Basic usage:
$(document.body).clickNScroll(); $("#myElement").clickNScroll({ reverse: true, acceleration: .5, rightMouse: true });
Options:
| allowHiliting | Allow text hiliting when dragging Default: false |
| reverse | Reversed scrolling Default: false |
| rightMouse | Scroll with the right mouse button Default: false |
| acceleration | Scrolling acceleration Value greater than 0 and less than 1 Default: 0.65 |
| deceleration | Scrolling deceleration Enabled by allowThrowing Value greater than 0 and less than 1 Default: 0.85 |
| decelRate | Deceleration rate Enabled by allowThrowing Percentage between 1 and 100 Default: 64 |
| allowThrowing | When true, content will continue to scroll for a time after the mouse button has been released (deceleration) Default: true |
| throwOnOut | When true, content will continue to scroll for a time after the mouse has left the element Enabled by allowThrowing Default: true |