From 36ece575ac328f77f0d5d23ae12a085a8c3e9830 Mon Sep 17 00:00:00 2001 From: Brandon Aaron Date: Wed, 13 Nov 2013 12:21:46 -0500 Subject: [PATCH] Do not fire the event if there is no change in deltaX and deltaY --- jquery.mousewheel.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jquery.mousewheel.js b/jquery.mousewheel.js index 72b83f8f3..d7225fabb 100755 --- a/jquery.mousewheel.js +++ b/jquery.mousewheel.js @@ -100,6 +100,9 @@ delta = detlaX * -1; } + // No change actually happened, no reason to go any further + if ( deltaY === 0 && deltaX === 0 ) { return; } + // Look for lowest delta to normalize the delta values absDelta = Math.abs(delta); if ( !lowestDelta || absDelta < lowestDelta ) { lowestDelta = absDelta; }