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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user