Home

Anonymous

jQuery.clickNScroll

Version 1.0 is out!

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:








allowHilitingAllow text hiliting when dragging
Default: false
reverseReversed scrolling
Default: false
rightMouse Scroll with the right mouse button
Default: false
accelerationScrolling acceleration
Value greater than 0 and less than 1
Default: 0.65
decelerationScrolling 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