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

Issue 23978008: Suppress scrollbar animation if the scroll gesture does not scroll (Closed)

Created:
7 years, 3 months ago by jdduke (slow)
Modified:
7 years, 3 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, tony
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Suppress scrollbar animation if the scroll gesture does not scroll Currently, the scrollbar layer animation is triggered at the end of every scroll gesture. However, as not every scroll gesture actually scrolls a layer, this may trigger extraneous animations, e.g., when the user overscrolls, or presses and lifts their finger without scrolling. Only trigger the scrollbar animation at the end of a scroll gesture if the gesture caused the layer to scroll. BUG=285771 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221801

Patch Set 1 #

Patch Set 2 : Unit tests #

Patch Set 3 : Fix LayerTreeHostImpl unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -26 lines) Patch
M cc/animation/scrollbar_animation_controller.h View 1 chunk +1 line, -2 lines 0 comments Download
M cc/animation/scrollbar_animation_controller_linear_fade.h View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/animation/scrollbar_animation_controller_linear_fade.cc View 2 chunks +16 lines, -12 lines 0 comments Download
M cc/animation/scrollbar_animation_controller_linear_fade_unittest.cc View 1 6 chunks +92 lines, -7 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jdduke (slow)
aelias@: PTAL. If you think this is the right general direction, I'll update the unit ...
7 years, 3 months ago (2013-09-05 19:01:29 UTC) #1
jdduke (slow)
I should also mention that this introduces a slight difference from current behavior; the animation ...
7 years, 3 months ago (2013-09-05 19:05:12 UTC) #2
tony
Is this really the desired behavior? It seems like a nice visual cue to have ...
7 years, 3 months ago (2013-09-05 19:16:42 UTC) #3
jdduke (slow)
On 2013/09/05 19:16:42, tony wrote: > Is this really the desired behavior? It seems like ...
7 years, 3 months ago (2013-09-05 19:26:04 UTC) #4
jdduke (slow)
On 2013/09/05 19:26:04, jdduke wrote: > On 2013/09/05 19:16:42, tony wrote: > > Is this ...
7 years, 3 months ago (2013-09-05 19:26:59 UTC) #5
jdduke (slow)
Hmm, then again I can see the value in showing the scrollbar even if we ...
7 years, 3 months ago (2013-09-05 20:21:47 UTC) #6
aelias_OOO_until_Jul13
This approach looks fine. You can go ahead and update the unit tests (and add ...
7 years, 3 months ago (2013-09-05 22:27:41 UTC) #7
jdduke (slow)
Tests updated.
7 years, 3 months ago (2013-09-06 16:33:44 UTC) #8
aelias_OOO_until_Jul13
lgtm
7 years, 3 months ago (2013-09-06 18:27:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/23978008/18001
7 years, 3 months ago (2013-09-06 18:47:45 UTC) #10
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 22:33:52 UTC) #11
Message was sent while issue was closed.
Change committed as 221801

Powered by Google App Engine
This is Rietveld 408576698