Skip to content

Commit

Permalink
1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Asselin committed Feb 2, 2014
1 parent a74e8a1 commit bdfcf23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mousewheelStopPropagation.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
wheelstop: null // Function
}, options);

// Compatibilities
var isMsIE = ('Microsoft Internet Explorer' === navigator.appName);
var docElt = document.documentElement,
mousewheelEventName = 'mousewheel';
if('onmousewheel' in docElt) {
Expand All @@ -24,14 +26,13 @@
}
if(!mousewheelEventName) { return this; }

var mousewheelPrevent = function(event) {
function mousewheelPrevent(event) {
event.preventDefault();
event.stopPropagation();
if('function' === typeof options.wheelstop) {
options.wheelstop(event);
}
};
var isMsIE = ('Microsoft Internet Explorer' === navigator.appName);
}

return this.each(function() {
var _this = this,
Expand Down Expand Up @@ -59,7 +60,6 @@
}
}
});

});
};

Expand Down

0 comments on commit bdfcf23

Please sign in to comment.