Skip to content

Commit 63c5e11

Browse files
committed
fixed potential firefox double scroll handler issue (JoelBesada#10)
1 parent 98e1204 commit 63c5e11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/jquery.scrollpath.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
$( document ).on({
6666
"mousewheel": scrollHandler,
67-
"DOMMouseScroll": scrollHandler, // Firefox
67+
"DOMMouseScroll": ("onmousewheel" in document) ? null : scrollHandler, // Firefox
6868
"keydown": keyHandler,
6969
"mousedown": function( e ) {
7070
if( e.button === 1 ) {

0 commit comments

Comments
 (0)