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

Issue 16156002: gpu: Avoid flinging beyond content edge (Closed)

Created:
7 years, 6 months ago by Sami
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium
Visibility:
Public.

Description

gpu: Avoid flinging beyond content edge If the user flings down a page while the page is still loading, we may hit a situation where the fling animation stops at the bottom edge of the content, pauses while the loading proceeds and then continues once the content grows taller. This results in a jarring pause in an otherwise continuous animation. This patch fixes the issue by preventing the fling animation from trying to scroll beyond the content edge. In other words, as soon as the content overscrolls on a specific axis, we prevent the fling animation from scrolling on that axis again. BUG=244376 TEST=InputHandlerProxyTest.GestureFlingStopsAtContentEdge Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204006

Patch Set 1 #

Total comments: 1

Patch Set 2 : Make constant static. #

Patch Set 3 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -8 lines) Patch
M content/renderer/gpu/input_handler_proxy.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/gpu/input_handler_proxy.cc View 1 2 4 chunks +27 lines, -8 lines 0 comments Download
M content/renderer/gpu/input_handler_proxy_unittest.cc View 1 2 1 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Sami
7 years, 6 months ago (2013-05-28 15:29:17 UTC) #1
rjkroege
lgtm
7 years, 6 months ago (2013-05-28 19:27:37 UTC) #2
Sami
Thanks Rob. Al, what do you think about this one?
7 years, 6 months ago (2013-05-31 10:31:06 UTC) #3
apatrick_chromium
Sorry for taking so long I've been OOO. I don't know this code. LGTM for ...
7 years, 6 months ago (2013-05-31 18:09:49 UTC) #4
Sami
Thanks Al. James, mind doing a sanity check?
7 years, 6 months ago (2013-05-31 18:17:35 UTC) #5
jamesr
lgtm https://codereview.chromium.org/16156002/diff/1/content/renderer/gpu/input_handler_proxy.cc File content/renderer/gpu/input_handler_proxy.cc (right): https://codereview.chromium.org/16156002/diff/1/content/renderer/gpu/input_handler_proxy.cc#newcode308 content/renderer/gpu/input_handler_proxy.cc:308: const int kFlingOverscrollThreshold = 1; why not static?
7 years, 6 months ago (2013-05-31 18:23:28 UTC) #6
Sami
On 2013/05/31 18:23:28, jamesr wrote: > lgtm > > https://codereview.chromium.org/16156002/diff/1/content/renderer/gpu/input_handler_proxy.cc > File content/renderer/gpu/input_handler_proxy.cc (right): > ...
7 years, 6 months ago (2013-06-03 14:23:59 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/16156002/8001
7 years, 6 months ago (2013-06-03 14:24:08 UTC) #8
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 6 months ago (2013-06-04 01:59:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/16156002/8001
7 years, 6 months ago (2013-06-04 09:44:33 UTC) #10
commit-bot: I haz the power
Failed to apply patch for content/renderer/gpu/input_handler_proxy_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 6 months ago (2013-06-04 09:44:36 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/16156002/24001
7 years, 6 months ago (2013-06-04 11:09:57 UTC) #12
commit-bot: I haz the power
7 years, 6 months ago (2013-06-04 18:20:29 UTC) #13
Message was sent while issue was closed.
Change committed as 204006

Powered by Google App Engine
This is Rietveld 408576698