Fix Firefox scrolling problem in OS X.
In OS X, there was the problem that the mousewheel event's preventDefault() doesn't work well. This patch fixes the problem.
This commit is contained in:
parent
540834308e
commit
af7194114a
@ -233,6 +233,10 @@
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
// fix Firefox scroll problem
|
||||
$this.bind('DOMMouseScroll.perfect-scroll', function (e) { e.preventDefault(); });
|
||||
$this.bind('MozMousePixelScroll.perfect-scroll', function (e) { e.preventDefault(); });
|
||||
};
|
||||
|
||||
// bind mobile touch handler
|
||||
|
Loading…
Reference in New Issue
Block a user