Mac: Fix history swiping bug on Yosemite.
There are 3 different sets of callbacks generated by AppKit in response to swipe events. The previous code relied on assumptions about the timing of the callbacks. It expected to receive the beginGestureWithEvent: callback before receiving any touchesMovedWithEvent: callbacks. Yosemite AppKit broke this assumption. The new code stops using beginGestureWithEvent: except to determine edge cases associated with the Magic Mouse, thus removing this implicit assumption. Because history swiping direction is determined very early on in the life cycle of the gesture, this CL adds some logic to ensure that the direction isn't determined prematurely. BUG=414103 TEST=History swiping should work as expected with both magic mouse and trackpad. Review URL: https://codereview.chromium.org/600743003 Cr-Commit-Position: refs/heads/master@{#296795}
Showing
Please register or sign in to comment