Dragscroll allows you to create numerous inertia scrolling areas all with their own properties.
npm install jquery.event.dragscrollCode style is as presented in
Single Page Web Applications - JavaScript end-to-end
which is available from [Amazon][1] and directly from [Manning][2].
The standard was last updated in [December 2016][3].
IE9 may require edge settings in the head section:
``html`
js
$(function (){
var scroll_obj = $.makeDragScrollObj({ _$scroll_box_ : $( 'body' ) });
$( 'body' )
.on( 'udragend', scroll_obj._onendHandler_ )
.on( 'udragmove', scroll_obj._onmoveHandler_ )
.on( 'udragstart', scroll_obj._onstartHandler_ )
;
});
`$3
Set this property to determine how the drag event propagates.`js
_stop_now_: Prevent default behavior and stop drag event from
propagating immediately.
event_obj.preventDefault();
event_obj.stopImmediatePropagation();'_stop_all_': Prevent default behavior and stop drag event from
propagating.
event_obj.preventDefault();
event_obj.stopPropagation();
'_stop_default_': Prevent default behavior.
default : Does not affect event behavior.
`$3
Support x scrolling. Default false.$3
Support y scrolling. Default true.$3
Affects scroll "friction." Default is 0.001.$3
Function executed when scrolling stops. The function receives the
_$scroll_box_ as the argument.Release Notes
$3
2015-2017 Michael S. Mikowski (mike[dot]mikowski[at]gmail[dotcom])$3
Dual licensed under the MIT or GPL Version 2
http://jquery.org/license$3
First public npm release. $3
Added the _on_stop_fn_ callback which is fired after
scroll animation stops.$3
Updated docs.$3
Added support for the body` element, update docs, README, and demo.If you are considering replacing jQuery with a "framwork", please consider
[if you really want an SPA framework][0].