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.