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

Issue 2931703002: Don't fade in overlay scrollbar when user interacting the content under scrollbar. (Closed)

Created:
3 years, 6 months ago by chaopeng
Modified:
3 years, 6 months ago
Reviewers:
bokan, weiliangc
CC:
cc-bugs_chromium.org, chromium-reviews, dtapuska+chromiumwatch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't fade in overlay scrollbar when user interacting the content under scrollbar. The issue (crbug.com/719011) indicate that it is hard to interact with the content under the the scrollbar because the scrollbar will fade in while mouse moves in the hover fade in region of scrollbar. In this patch, we prevent fade in overlay scrollbar when user mouse down. 3 behaviors changed: 1. When mouse move in hover fade in region of scrollbar with mouse press, we don't trigger delay fade in. 2. When mouse down after a delay fade in triggered, cancel the delay fade in. 3. When mouse up in hover fade in region of scrollbar, trigger a delay fade in. BUG=719011 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2931703002 Cr-Commit-Position: refs/heads/master@{#478733} Committed: https://chromium.googlesource.com/chromium/src/+/ac6ccd29b4eaa1e056c0cd0656e2fad8aa624d42

Patch Set 1 #

Total comments: 6

Patch Set 2 : bokan comments addressed #

Total comments: 1

Patch Set 3 : bokan comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -14 lines) Patch
M cc/input/scrollbar_animation_controller.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cc/input/scrollbar_animation_controller.cc View 1 6 chunks +35 lines, -6 lines 0 comments Download
M cc/input/scrollbar_animation_controller_unittest.cc View 1 2 8 chunks +111 lines, -8 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
chaopeng
PTAL. Thank you.
3 years, 6 months ago (2017-06-07 20:19:51 UTC) #3
bokan
btw, your commit message comments and have improved a lot lately, thanks! https://codereview.chromium.org/2931703002/diff/1/cc/input/input_handler.h File cc/input/input_handler.h ...
3 years, 6 months ago (2017-06-08 14:02:39 UTC) #6
chaopeng
On 2017/06/08 14:02:39, bokan wrote: > btw, your commit message comments and have improved a ...
3 years, 6 months ago (2017-06-08 15:04:36 UTC) #8
bokan
Nit on the "fade in region" comments But otherwise LGTM https://codereview.chromium.org/2931703002/diff/40001/cc/input/scrollbar_animation_controller_unittest.cc File cc/input/scrollbar_animation_controller_unittest.cc (right): https://codereview.chromium.org/2931703002/diff/40001/cc/input/scrollbar_animation_controller_unittest.cc#newcode1285 ...
3 years, 6 months ago (2017-06-08 20:19:54 UTC) #9
chaopeng
weiliangc@chromium.org: Please review changes in PTAL. Thank you.
3 years, 6 months ago (2017-06-09 01:19:20 UTC) #11
weiliangc
LGTM
3 years, 6 months ago (2017-06-12 17:44:39 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2931703002/60001
3 years, 6 months ago (2017-06-12 18:03:14 UTC) #15
commit-bot: I haz the power
3 years, 6 months ago (2017-06-12 20:04:02 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/ac6ccd29b4eaa1e056c0cd0656e2...

Powered by Google App Engine
This is Rietveld 408576698