forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make preventDefault() from onmousewheel disable two-finger back/forwa…
…rd navigation on OS X Lion. The code to trigger back/forward navigation from mouse wheel events is currently broken. It triggers on all unhandled wheel events including events with a delta of zero, even though JavaScript never gets a chance to handle them (WheelEventDispatchMediator ignores them). This CL fixes that by only reporting wheel events with non-zero deltas as unhandled. It also fixes a bug where the wrong wheel event is reported as unhandled if there are additional wheel events in the queue. BUG=239731 TEST=Visit http://jsfiddle.net/Qs3JJ/, horizontal scroll with two fingers on trackpad, no history navigation should happen. Review URL: https://chromiumcodereview.appspot.com/14795004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199796 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
evan.exe@gmail.com
committed
May 13, 2013
1 parent
7a4a76f
commit bcdc898
Showing
6 changed files
with
131 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters