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

Issue 702883004: Expose whether a touch event may cause scrolling if uncanceled (Closed)

Created:
6 years, 1 month ago by jdduke (slow)
Modified:
6 years, 1 month ago
CC:
blink-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Expose whether a touch event may cause scrolling if uncanceled Currently, there are several parts of the touch pipeline that need to know whether a touch event may cause scrolling. In particular, touchmove events within a platform-specific slop region will not induce scrolling, and such events are suppressed by the TouchEventQueue when the touchstart is not prevented. The TouchEventQueue uses a slop region constant to perform this suppression. However, there are no guarantees that this constant is the same as that used in gesture detection. With devtools touch emulation, it should be possible to vary the slop region when emulating different devices, but the duplicated slop region code in the TouchEventQueue makes this difficult. This solution tags each touch event with a bit indicating whether the event may cause scrolling, allowing any listener or consumer of the touch stream to better reason about the touch event's default action. This tagging will be wired up in the corresponding Chromium change: https://codereview.chromium.org/718153002 Also remove the IsLastInputEventForCurrentVSync flag as it's no longer used. BUG=425586 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185244

Patch Set 1 #

Patch Set 2 : Comment #

Total comments: 1

Patch Set 3 : Rename #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -9 lines) Patch
M Source/web/WebInputEvent.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M public/web/WebInputEvent.h View 1 2 2 chunks +9 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
jdduke (slow)
rbyers@: PTAL. If you prefer, we can add a separate flags field just for touch ...
6 years, 1 month ago (2014-11-07 22:51:42 UTC) #2
Rick Byers
lgtm with nit. Sigh, this stupid "can't use bool in IPC objects" thing should really ...
6 years, 1 month ago (2014-11-10 18:56:04 UTC) #3
jdduke (slow)
On 2014/11/10 18:56:04, Rick Byers wrote: > https://codereview.chromium.org/702883004/diff/20001/public/web/WebInputEvent.h > File public/web/WebInputEvent.h (right): > > https://codereview.chromium.org/702883004/diff/20001/public/web/WebInputEvent.h#newcode495 ...
6 years, 1 month ago (2014-11-10 19:13:02 UTC) #4
Rick Byers
On 2014/11/10 19:13:02, jdduke wrote: > On 2014/11/10 18:56:04, Rick Byers wrote: > > > ...
6 years, 1 month ago (2014-11-10 19:26:46 UTC) #5
jdduke (slow)
Adding aelias@ for the Source/web/WebInputEvent.cpp change.
6 years, 1 month ago (2014-11-12 19:13:20 UTC) #7
aelias_OOO_until_Jul13
lgtm
6 years, 1 month ago (2014-11-12 19:23:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/702883004/40001
6 years, 1 month ago (2014-11-12 19:47:29 UTC) #10
commit-bot: I haz the power
6 years, 1 month ago (2014-11-12 20:58:46 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 185244

Powered by Google App Engine
This is Rietveld 408576698