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

Issue 2355643002: Selection-autoscroll should be triggered when the pointer is in the border belt. (Closed)

Created:
4 years, 3 months ago by sunyunjia
Modified:
4 years, 3 months ago
Reviewers:
bokan
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Selection-autoscroll should be triggered when the pointer is in the border belt. Previously, selection-autoscroll can only be triggered when the pointer is outside the border. This generally works fine. However, when the browser is maximized and there is no panel or dock at the bottom of user's desktop, the pointer can't move out the border as it can't move out the screen, so selection-autoscroll can't be triggered. This patch implements the selection-autoscroll according to drag-and-drop autoscroll, so that the autoscroll will be triggered when the pointer is in the border belt area (within a certain distance to the border and inside). BUG=645108 Committed: https://crrev.com/b7026e2d381d6f3f8d46394bf173b92c2826a5d5 Cr-Commit-Position: refs/heads/master@{#419654}

Patch Set 1 #

Patch Set 2 : Patch #

Total comments: 4

Patch Set 3 : Use requestAnimationFrame instead. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/fast/events/selection-autoscroll-borderbelt.html View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/page/AutoscrollController.cpp View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 28 (18 generated)
sunyunjia
PTAL, thanks!
4 years, 3 months ago (2016-09-19 20:25:47 UTC) #9
bokan
https://codereview.chromium.org/2355643002/diff/20001/third_party/WebKit/LayoutTests/fast/events/selection-autoscroll-borderbelt.html File third_party/WebKit/LayoutTests/fast/events/selection-autoscroll-borderbelt.html (right): https://codereview.chromium.org/2355643002/diff/20001/third_party/WebKit/LayoutTests/fast/events/selection-autoscroll-borderbelt.html#newcode4 third_party/WebKit/LayoutTests/fast/events/selection-autoscroll-borderbelt.html:4: <body> Nit: no <body> tag https://codereview.chromium.org/2355643002/diff/20001/third_party/WebKit/LayoutTests/fast/events/selection-autoscroll-borderbelt.html#newcode26 third_party/WebKit/LayoutTests/fast/events/selection-autoscroll-borderbelt.html:26: console.log(scrollable.scrollTop); Please ...
4 years, 3 months ago (2016-09-19 21:13:18 UTC) #10
sunyunjia
Thanks for "requestAnimationFrame"! PTAL.
4 years, 3 months ago (2016-09-19 21:35:10 UTC) #14
bokan
Thanks. Quick question: what is the definition of the border belt? It's not the border ...
4 years, 3 months ago (2016-09-19 21:41:26 UTC) #16
sunyunjia
Done edited the description. Here is the pointer to border belt: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/layout/LayoutBox.cpp?q=border+belt+scroll&sq=package:chromium&l=83&dr=CSs
4 years, 3 months ago (2016-09-19 21:53:20 UTC) #18
sunyunjia
Done edited the description. Here is the pointer to border belt: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/layout/LayoutBox.cpp?q=border+belt+scroll&sq=package:chromium&l=83&dr=CSs
4 years, 3 months ago (2016-09-19 21:53:21 UTC) #19
bokan
Got it. Thanks! lgtm
4 years, 3 months ago (2016-09-19 21:55:56 UTC) #20
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/2355643002/40001
4 years, 3 months ago (2016-09-20 01:33:37 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-20 02:30:05 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 02:31:37 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b7026e2d381d6f3f8d46394bf173b92c2826a5d5
Cr-Commit-Position: refs/heads/master@{#419654}

Powered by Google App Engine
This is Rietveld 408576698