DescriptionFix OverscrollWindowDelegate to not dispatch superfluous OverscrollModeChange events
Previously OverscrollWindowDelegate sometimes would call OnOverscrollModeChange on its delegate even if the overscroll mode didn't change. Specifically this happened for OVERSCROLL_NONE when an overscroll-cancelling condition such as a mouse move would occur.
This could confuse OverscrollWindowAnimation and make it cancel the overscroll animation which shouldn't have been cancelled. On Windows there is currently a mouse event dispatched after each swipe on the touch screen, so this caused crbug.com/493672.
BUG=493672
Committed: https://crrev.com/404f4d1ddaa75235e67a5f8a71ecc6ac8b2d65ec
Cr-Commit-Position: refs/heads/master@{#333049}
Patch Set 1 #Patch Set 2 : Unit test #
Messages
Total messages: 7 (2 generated)
|