After binding the scroll event to an object, how can I get the amount the user scrolled by?
$(selector).scroll(function(e) {
// get scroll amount
});
Firefox and Opera have the property detail
whereas IE, Safari, and Opera have wheelData
. To make matters worse, Firefox and Opera operate on a scale of -3 to 3, and IE and Safari go from -120 to 120.
Is there a single, normalized property that jQuery provides for this?
<canvas>
, which is not scrollable. – Colleen