Mark gesture sequence in progress true for GestureTapCancel
Right now in TouchActionFilter, we set |gesture_sequence_in_progress_| false when processing GestureTap and GestureTapCancel. This is wrong with considering the following gesture sequence: 1. A simple tap: GestureTapDown-->GestureTapUnconfirmed-->GestureTap 2. Double tap: GestureTapDown-->GestureTapUnconfirmed-->GestureTapCancel -->GestureTapDown-->GestureTapCancel-->GestureDoubleTap 3. A gesture scroll: GestureTapDown-->GestureTapCancel -->GestureScrollBegin-->GestureScrollUpdate-->GestureScrollEnd 4. A fling: GestureTapDown-->GestureTapCancel-->GestureScrollBegin -->GestureScrollUpdate-->GestureScrollEnd All these sequence indicates that the gesture_sequence_in_progress_ should be true when filtering a GestureTapCancel and false when GestureTap. This CL does that. In additional to that, this CL also mark gesture_sequence_in_progress_ false when it is GestureLongTap or GestureTwoFingerTap. Unit tests are added for both cases. TBR=dtapuska@chromium.org Bug: 851644 Change-Id: I40e70cb95a93c20b13952c571d1e1108405c6051 Reviewed-on: https://chromium-review.googlesource.com/1190423 Commit-Queue: Xida Chen <xidachen@chromium.org> Reviewed-by:Sahel Sharify <sahel@chromium.org> Cr-Commit-Position: refs/heads/master@{#586351}
Showing
Please register or sign in to comment