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

Issue 910373002: [Android] Disable pull-to-refresh with overflow:hidden (Closed)

Created:
5 years, 10 months ago by jdduke (slow)
Modified:
5 years, 10 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, jakearchibald, jam, jdduke+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Disable pull-to-refresh with overflow-y:hidden Currently, the only way to disable the pull-to-refresh effect is to explictly preventDefault the causal touches or suppress their default actions with touch-action: none. However, the latter prevents any kind of accelerated scrolling, and the former can be to get right with composed or nested scrollable content. Use the overflow-y:hidden property on the root element as a signal to disable the effect. This dovetails with how this property both prevents hiding of the top controls and suppresses the overscroll glow effect. BUG=456515, 456300 Committed: https://crrev.com/2afdbf72bcfa0a2e30d31a37ca6499dcb99a62aa Cr-Commit-Position: refs/heads/master@{#315938}

Patch Set 1 #

Patch Set 2 : Use overscroll instead of ack #

Patch Set 3 : Pass overflow:hidden via metadata #

Total comments: 1

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -134 lines) Patch
M cc/output/compositor_frame_metadata.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/output/compositor_frame_metadata.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
M content/browser/android/overscroll_controller_android.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/android/overscroll_refresh.h View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M content/browser/android/overscroll_refresh.cc View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M content/browser/android/overscroll_refresh_unittest.cc View 1 2 3 6 chunks +148 lines, -127 lines 0 comments Download
M content/common/cc_messages.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
jdduke (slow)
aelias@: PTAL. The alternative here as suggested by Rick is using the content size to ...
5 years, 10 months ago (2015-02-10 22:37:50 UTC) #2
Rick Byers
I like this, lgtm A couple notes on the description: it's not true that preventDefault ...
5 years, 10 months ago (2015-02-10 22:48:11 UTC) #4
jdduke (slow)
Thanks for review! On 2015/02/10 22:48:11, Rick Byers wrote: > I like this, lgtm > ...
5 years, 10 months ago (2015-02-10 23:19:59 UTC) #5
aelias_OOO_until_Jul13
On 2015/02/10 at 22:48:11, rbyers wrote: > A couple notes on the description: it's not ...
5 years, 10 months ago (2015-02-10 23:32:58 UTC) #6
jdduke (slow)
On 2015/02/10 23:32:58, aelias wrote: > On 2015/02/10 at 22:48:11, rbyers wrote: > > A ...
5 years, 10 months ago (2015-02-11 00:09:15 UTC) #7
Rick Byers
On 2015/02/10 23:32:58, aelias wrote: > On 2015/02/10 at 22:48:11, rbyers wrote: > > A ...
5 years, 10 months ago (2015-02-11 04:51:03 UTC) #8
aelias_OOO_until_Jul13
lgtm
5 years, 10 months ago (2015-02-11 06:43:38 UTC) #9
jdduke (slow)
I just realized I'm going to have to tweak this a bit. This reports scrolls ...
5 years, 10 months ago (2015-02-11 16:55:02 UTC) #10
jdduke (slow)
OK, the latest version accommodates overflow:hidden without affecting the InputEventAckState. In short, we listen to ...
5 years, 10 months ago (2015-02-11 19:19:51 UTC) #13
jdduke (slow)
On 2015/02/11 19:19:51, jdduke wrote: > OK, the latest version accommodates overflow:hidden without affecting the ...
5 years, 10 months ago (2015-02-11 19:30:46 UTC) #14
aelias_OOO_until_Jul13
Hmm, would it be simpler to just plumb a bool about root overflow-y: hidden in ...
5 years, 10 months ago (2015-02-11 20:42:05 UTC) #15
jdduke (slow)
On 2015/02/11 20:42:05, aelias wrote: > Hmm, would it be simpler to just plumb a ...
5 years, 10 months ago (2015-02-11 20:44:45 UTC) #16
jdduke (slow)
On 2015/02/11 20:44:45, jdduke wrote: > On 2015/02/11 20:42:05, aelias wrote: > > Hmm, would ...
5 years, 10 months ago (2015-02-11 20:45:16 UTC) #17
jdduke (slow)
OK, made the suggested change, much cleaner and should just work with main thread scrolling. ...
5 years, 10 months ago (2015-02-11 22:18:00 UTC) #19
dcheng
lgtm
5 years, 10 months ago (2015-02-11 22:19:23 UTC) #20
jdduke (slow)
https://codereview.chromium.org/910373002/diff/40001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/910373002/diff/40001/cc/trees/layer_tree_host_impl.cc#newcode2681 cc/trees/layer_tree_host_impl.cc:2681: const LayerImpl* layer_for_user_scrollable_testing = Oops, I'll go ahead and ...
5 years, 10 months ago (2015-02-11 22:22:56 UTC) #21
aelias_OOO_until_Jul13
lgtm
5 years, 10 months ago (2015-02-12 04:03:23 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/910373002/80001
5 years, 10 months ago (2015-02-12 04:50:30 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 10 months ago (2015-02-12 06:28:29 UTC) #27
commit-bot: I haz the power
5 years, 10 months ago (2015-02-12 06:29:11 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2afdbf72bcfa0a2e30d31a37ca6499dcb99a62aa
Cr-Commit-Position: refs/heads/master@{#315938}

Powered by Google App Engine
This is Rietveld 408576698