Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
jquery.event.dragscroll
Advanced tools
Dragscroll allows you to create numerous inertia scrolling areas all with their own properties.
Use this plugin to add scrolling to touch enabled web pages. It is compatible with jQuery 1.7.0+ and passes JSLint.
Code style is as presented in Single Page Web Applications - JavaScript end-to-end which is available from Amazon and directly from Manning. The standard was last updated in December 2016.
Works with iOS5+ (Stock browser) and Android 3.2+ (Chrome) and of course all modern desktop browsers (IE9+ and later version of Chrome, Safari, and Firefox.
IE9 may require edge settings in the head section:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
$(function (){
var scroll_obj = $.makeDragScrollObj({ _$scroll_box_ : $( 'body' ) });
$( 'body' )
.on( 'udragend', scroll_obj._onendHandler_ )
.on( 'udragmove', scroll_obj._onmoveHandler_ )
.on( 'udragstart', scroll_obj._onstartHandler_ )
;
});
_prop_key_
Set this property to determine how the drag event propagates.
`_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.
_do_scroll_x_
Support x scrolling. Default false
.
_do_scroll_y_
Support y scrolling. Default true
.
_drag_ratio_
Affects scroll "friction." Default is 0.001.
_on_stop_fn_
Function executed when scrolling stops. The function receives the
_$scroll_box_
as the argument.
2015-2017 Michael S. Mikowski (mike[dot]mikowski[at]gmail[dotcom])
Dual licensed under the MIT or GPL Version 2 http://jquery.org/license
First public npm release.
Added the _on_stop_fn_
callback which is fired after
scroll animation stops.
Updated docs.
Added support for the body
element, update docs, README, and demo.
If you want to help out, like all jQuery plugins this is hosted at GitHub. Any improvements or suggestions are welcome! You can reach me at mike[dot]mikowski[at]gmail[dotcom].
If you are considering replacing jQuery with a "framwork", please consider if you really want an SPA framework.
FAQs
Dragscroll allows you to create numerous inertia scrolling areas all with their own properties.
The npm package jquery.event.dragscroll receives a total of 56 weekly downloads. As such, jquery.event.dragscroll popularity was classified as not popular.
We found that jquery.event.dragscroll demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.