Skip to content

Commit

Permalink
Fix Chrome broken mousewheel
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Oct 16, 2015
1 parent a0dcb59 commit bb5d84b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/mousewheel.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ function handleMousewheel(e) {
delta = Math.abs(e.deltaX) > Math.abs(e.deltaY) ? - e.deltaX : - e.deltaY;
}
}
if (delta === 0) return;

if (s.params.mousewheelInvert) delta = -delta;

Expand Down

0 comments on commit bb5d84b

Please sign in to comment.