Skip to content

Commit

Permalink
Merge pull request nolimits4web#100 from wolffan/patch-1
Browse files Browse the repository at this point in the history
Update idangerous.swiper.js
  • Loading branch information
nolimits4web committed Mar 6, 2013
2 parents 7418ff7 + 7adcf2d commit c2679fd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions dev/idangerous.swiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,19 +684,19 @@ Swiper = function(selector, params, callback) {
Mousewheel Control. Beta!
============================================*/
// detect available wheel event
    _this._wheelEvent = false;
_this._wheelEvent = false;

if (params.mousewheelControl) {
if ( document.onmousewheel !== undefined ) {
        _this._wheelEvent = "mousewheel"
    }
    try {
        WheelEvent("wheel");
        _this._wheelEvent = "wheel";
    } catch (e) {}
    if ( !_this._wheelEvent ) {
_this._wheelEvent = "DOMMouseScroll";
    }
_this._wheelEvent = "mousewheel"
}
try {
WheelEvent("wheel");
_this._wheelEvent = "wheel";
} catch (e) {}
if ( !_this._wheelEvent ) {
_this._wheelEvent = "DOMMouseScroll";
}
function handleMousewheel (e) {
if(e.preventDefault) e.preventDefault();
var we = _this._wheelEvent;
Expand Down

0 comments on commit c2679fd

Please sign in to comment.