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:
Hyunje Alex Jun 2013-08-01 02:01:42 +09:00
parent 540834308e
commit af7194114a

View File

@ -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