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

Issue 872633005: Stop sending an async touchmove for the app slop region (Closed)

Created:
5 years, 11 months ago by jdduke (slow)
Modified:
5 years, 10 months ago
Reviewers:
Rick Byers
CC:
chromium-reviews, darin-cc_chromium.org, jdduke+watch_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop sending an async touchmove for the app slop region With throttled, async touch dispatch, an uncancelable touchmove is sent as soon as the touch sequence exceeds an arbitrarily defined application slop region, separate from the platform slop region. The intent in doing so was to allow web apps to clear any tap/press-related state after a scroll has begun. However, the sending of this touchmove at the start of a scroll sequence can be problematic; the early part of a scroll sequence is often sensitive to minor bottlenecks, and the dispatch of an additional touchmove can conceivably push the app into high latency mode by delaying frame production. Stop sending this slop-exceeding touchmove, instead relying on the existing timer-based async touchmove dispatch. Note that while this may regress touch behavior on certain sites (e.g., causing faulty tap interpretation), it's likely that behavior on such sites was already racy and fragile, subject to the arbitrary value of the fixed "application" slop region. BUG=449275 Committed: https://crrev.com/635c6ec3ee861ee290cecf66e81b98a000ad23cd Cr-Commit-Position: refs/heads/master@{#313588}

Patch Set 1 #

Patch Set 2 : Comment #

Total comments: 1

Patch Set 3 : No app slop touchmove #

Patch Set 4 : Add explicit test for flush #

Total comments: 5

Patch Set 5 : Code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -47 lines) Patch
M content/browser/renderer_host/input/touch_event_queue.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.cc View 1 2 7 chunks +7 lines, -36 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue_unittest.cc View 1 2 3 4 2 chunks +55 lines, -10 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
jdduke (slow)
rbyers@: PTAL. I played with some fixed time delays, but this approach is both simpler ...
5 years, 11 months ago (2015-01-23 22:34:01 UTC) #2
jdduke (slow)
On 2015/01/23 22:34:01, jdduke wrote: > rbyers@: PTAL. I played with some fixed time delays, ...
5 years, 11 months ago (2015-01-27 17:20:58 UTC) #3
Rick Byers
Sorry for the delay. This definitely seems like a hack (kind of weird to have ...
5 years, 11 months ago (2015-01-27 17:59:15 UTC) #4
jdduke (slow)
On 2015/01/27 17:59:15, Rick Byers wrote: > Sorry for the delay. This definitely seems like ...
5 years, 11 months ago (2015-01-27 20:58:59 UTC) #5
Rick Byers
On 2015/01/27 20:58:59, jdduke wrote: > On 2015/01/27 17:59:15, Rick Byers wrote: > > Sorry ...
5 years, 11 months ago (2015-01-27 21:59:01 UTC) #6
jdduke (slow)
OK, with the latest version I've removed the app slop region. I tested this against ...
5 years, 10 months ago (2015-01-28 19:22:58 UTC) #7
Rick Byers
Ok, thanks for testing. I'm not too worried about the unnaturally-quick scroll-up-then-down scenario. LGTM. https://codereview.chromium.org/872633005/diff/60001/content/browser/renderer_host/input/touch_event_queue_unittest.cc ...
5 years, 10 months ago (2015-01-28 20:00:09 UTC) #8
jdduke (slow)
Thanks for review! https://codereview.chromium.org/872633005/diff/60001/content/browser/renderer_host/input/touch_event_queue_unittest.cc File content/browser/renderer_host/input/touch_event_queue_unittest.cc (right): https://codereview.chromium.org/872633005/diff/60001/content/browser/renderer_host/input/touch_event_queue_unittest.cc#newcode1930 content/browser/renderer_host/input/touch_event_queue_unittest.cc:1930: SetTouchScrollingMode(TouchEventQueue::TOUCH_SCROLLING_MODE_ASYNC_TOUCHMOVE); On 2015/01/28 20:00:08, Rick Byers ...
5 years, 10 months ago (2015-01-28 20:10:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/872633005/80001
5 years, 10 months ago (2015-01-28 20:11:42 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-01-28 21:32:57 UTC) #12
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 21:34:38 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/635c6ec3ee861ee290cecf66e81b98a000ad23cd
Cr-Commit-Position: refs/heads/master@{#313588}

Powered by Google App Engine
This is Rietveld 408576698