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-scrollstop
Advanced tools
A jQuery plugin that adds custom scroll start and scroll stop events.
This plugin fires two events on window
when scrolling starts and stops:
scrollstart
and scrollstop
.
The example shows a small box in the upper left that says "SCROLLING" and colors the body different colors when scrolling: http://ssorallen.com/jquery-scrollstop/
scrollstart
fires after the first scroll event and won't fire again until
after a scrollstop
event is fired.
scrollstop
fires after no scroll
events have fired for 250 milliseconds.
$(window)
.on("scrollstart", function() {
// Paint the world yellow when scrolling starts.
$(document.body).css({background: "yellow"});
})
.on("scrollstop", function() {
// Paint it all green when scrolling stops.
$(document.body).css({background: "green"});
})
latency
is the minimum time between the last scroll event and when the
scrollstop
event fires. Set $.event.special.scrollstop.latency
to the
desired number of milliseconds (default: 250).
// Configure time between final scroll event and
// `scrollstop` event to 650ms (default is 250ms).
$.event.special.scrollstop.latency = 650;
Latency can be configured per-element by passing options when the event listener is bound. If multiple event listeners are bound to the same element, only the data from the first event listener will set the configuration.
// Configure latency to 650ms for #scrolling-div
$("#scrolling-div").on("scrollstop", {latency: 650}, function() { ... });
The plugin is tested in jQuery 1.2.3+ and jQuery 2.0.3+.
James Padolsey's jQuery scrollstop plugin that fires an event when scrolling stops for minimum amount of time.
Originally code copied from http://james.padolsey.com/javascript/special-scroll-events-for-jquery/
FAQs
A jQuery plugin that adds custom scroll start and scroll stop events.
We found that jquery-scrollstop 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.