|
|
DescriptionSelection-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. #
Messages
Total messages: 28 (18 generated)
The CQ bit was checked by sunyunjia@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Selection-autoscroll should be triggered when the pointer is in the border belt. BUG=645108 ========== to ========== 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. BUG=645108 ==========
sunyunjia@chromium.org changed reviewers: + bokan@chromium.org
The CQ bit was checked by sunyunjia@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== 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. BUG=645108 ========== to ========== 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. BUG=645108 ==========
Description was changed from ========== 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. BUG=645108 ========== to ========== 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. BUG=645108 ==========
PTAL, thanks!
https://codereview.chromium.org/2355643002/diff/20001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/fast/events/selection-autoscroll-borderbelt.html (right): https://codereview.chromium.org/2355643002/diff/20001/third_party/WebKit/Layo... 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/Layo... third_party/WebKit/LayoutTests/fast/events/selection-autoscroll-borderbelt.html:26: console.log(scrollable.scrollTop); Please remove the logging output. https://codereview.chromium.org/2355643002/diff/20001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/fast/events/selection-autoscroll-borderbelt.html:37: // Autoscroll is occurred evey 0.05 sec. Where does this constant come from? I see AutoscrollController.cpp has static double autoscrollDelay but that's 0.2 sec and is only used in the drag and drop case. https://codereview.chromium.org/2355643002/diff/20001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/fast/events/selection-autoscroll-borderbelt.html:38: window.setTimeout(checkScrolled, 50); We generally avoid using window.setTimeout in tests since it commonly leads to flaky tests. Instead, we prefer to use requestAnimationFrame since that'll execute on the next frame regardless of when that is. That requires though that the autoscroll starts immediately (if there is indeed a constant delay, as asked above, then rAF might not work). Also, please remove the retry machinery.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by sunyunjia@chromium.org to run a CQ dry run
Thanks for "requestAnimationFrame"! PTAL.
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Thanks. Quick question: what is the definition of the border belt? It's not the border because your test's drag ends before the border and the manual instructions imply as much. Please define it in the description.
Description was changed from ========== 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. BUG=645108 ========== to ========== 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 ==========
Done edited the description. Here is the pointer to border belt: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/layout/La...
Done edited the description. Here is the pointer to border belt: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/layout/La...
Got it. Thanks! lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by sunyunjia@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/b7026e2d381d6f3f8d46394bf173b92c2826a5d5 Cr-Commit-Position: refs/heads/master@{#419654} |