Skip to content

Per-element Config

Choose a tag to compare

@ssorallen ssorallen released this 23 Jan 18:46
· 13 commits to master since this release

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() { ... });