Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Issue 189583007: Ensure Multi-finger tap generates both GestureScrollBegin and GestureScrollEnd. (Closed)

Created:
6 years, 9 months ago by tdresser
Modified:
6 years, 9 months ago
Reviewers:
sadrul
CC:
chromium-reviews, sadrul, ben+aura_chromium.org, kalyank
Visibility:
Public.

Description

Ensure Multi-finger tap generates both GestureScrollBegin and GestureScrollEnd. There are two possible solutions to this bug: 1. Add a GestureScrollBegin. 2. Create a new state which allows scrolling but not tapping, and transition to that state on the release of a finger during multi-finger tap. Option 1 is significantly simpler, and doesn't make the GR state machine any more complicated. Option 2 prevents sending GestureScrollBegin and GestureScrollEnd events which may not be accompanied by any GestureScrollUpdate events. I believe that option 1 is the correct choice here. BUG=350121 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256004

Patch Set 1 #

Total comments: 2

Patch Set 2 : Perform fix in all required locations. #

Total comments: 2

Patch Set 3 : Factor out scroll start logic. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -21 lines) Patch
M ui/aura/gestures/gesture_recognizer_unittest.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M ui/events/gestures/gesture_sequence.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/gestures/gesture_sequence.cc View 1 2 6 chunks +21 lines, -18 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
tdresser
6 years, 9 months ago (2014-03-07 14:20:18 UTC) #1
sadrul
https://codereview.chromium.org/189583007/diff/1/ui/events/gestures/gesture_sequence.cc File ui/events/gestures/gesture_sequence.cc (right): https://codereview.chromium.org/189583007/diff/1/ui/events/gestures/gesture_sequence.cc#newcode655 ui/events/gestures/gesture_sequence.cc:655: set_state(GS_SCROLL); Do you need the same change here, and ...
6 years, 9 months ago (2014-03-07 18:07:06 UTC) #2
tdresser
https://codereview.chromium.org/189583007/diff/1/ui/events/gestures/gesture_sequence.cc File ui/events/gestures/gesture_sequence.cc (right): https://codereview.chromium.org/189583007/diff/1/ui/events/gestures/gesture_sequence.cc#newcode655 ui/events/gestures/gesture_sequence.cc:655: set_state(GS_SCROLL); On 2014/03/07 18:07:07, sadrul wrote: > Do you ...
6 years, 9 months ago (2014-03-07 19:23:26 UTC) #3
sadrul
lgtm https://codereview.chromium.org/189583007/diff/20001/ui/events/gestures/gesture_sequence.cc File ui/events/gestures/gesture_sequence.cc (right): https://codereview.chromium.org/189583007/diff/20001/ui/events/gestures/gesture_sequence.cc#newcode639 ui/events/gestures/gesture_sequence.cc:639: set_state(GS_SCROLL); It may make sense to have a ...
6 years, 9 months ago (2014-03-10 03:54:52 UTC) #4
tdresser
https://codereview.chromium.org/189583007/diff/20001/ui/events/gestures/gesture_sequence.cc File ui/events/gestures/gesture_sequence.cc (right): https://codereview.chromium.org/189583007/diff/20001/ui/events/gestures/gesture_sequence.cc#newcode639 ui/events/gestures/gesture_sequence.cc:639: set_state(GS_SCROLL); On 2014/03/10 03:54:52, sadrul wrote: > It may ...
6 years, 9 months ago (2014-03-10 12:36:38 UTC) #5
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 9 months ago (2014-03-10 12:36:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/189583007/40001
6 years, 9 months ago (2014-03-10 12:37:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/189583007/40001
6 years, 9 months ago (2014-03-10 13:05:56 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/189583007/40001
6 years, 9 months ago (2014-03-10 14:20:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/189583007/40001
6 years, 9 months ago (2014-03-10 15:37:41 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/189583007/40001
6 years, 9 months ago (2014-03-10 17:35:41 UTC) #11
commit-bot: I haz the power
6 years, 9 months ago (2014-03-10 19:13:45 UTC) #12
Message was sent while issue was closed.
Change committed as 256004

Powered by Google App Engine
This is Rietveld 408576698