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

Issue 2928793003: Re-target wheel events only when a new scroll sequence has started. (Closed)

Created:
3 years, 6 months ago by sahel
Modified:
3 years, 6 months ago
Reviewers:
bokan, tdresser
CC:
chromium-reviews, dtapuska+blinkwatch_chromium.org, jam, dtapuska+chromiumwatch_chromium.org, darin-cc_chromium.org, Navid Zolghadr, blink-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Re-target wheel events only when a new scroll sequence has started. In RouteMouseWheelEvent, when a wheel event with phase began arrives, find the target for wheel event. While no wheel with phase end has arrived (during a scroll sequence) send the wheel events to the saved target. In EventHandler, do the same targetting to dispatch the events to js. BUG=526463 TEST=WheelScrollLatchingBrowserTest.WheelEventTarget, WheelScrollLatchingDisabledBrowserTest.WheelEventTarget Review-Url: https://codereview.chromium.org/2928793003 Cr-Commit-Position: refs/heads/master@{#480052} Committed: https://chromium.googlesource.com/chromium/src/+/8aa8c38005ee36bc441138c81a5cf165fb6514a5

Patch Set 1 #

Patch Set 2 : browser test updated. #

Patch Set 3 : browser test updated. #

Total comments: 12

Patch Set 4 : MouseWheelEventManager handles wheel events. #

Patch Set 5 : Landed migration of wheel handling to MouseWheelEventManager separately. #

Total comments: 18

Patch Set 6 : review comments addressed. #

Patch Set 7 : review comments addressed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+368 lines, -42 lines) Patch
A content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc View 1 2 3 4 5 1 chunk +239 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_input_event_router.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_input_event_router.cc View 1 2 3 4 5 6 2 chunks +27 lines, -1 line 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/wheel/wheelevent-basic.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/wheel/wheelevent-ctrl.html View 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/wheel/wheelevent-in-scrolling-div.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/wheel/wheelevent-in-text-node.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/wheel/wheelevent-mousewheel-interaction.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/MouseWheelEventManager.h View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/MouseWheelEventManager.cpp View 1 2 3 4 5 6 3 chunks +78 lines, -32 lines 0 comments Download

Messages

Total messages: 62 (50 generated)
sahel
bokan@chromium.org: Please review changes in tdresser@chromium.org: Please review changes in
3 years, 6 months ago (2017-06-09 17:18:13 UTC) #23
tdresser
https://codereview.chromium.org/2928793003/diff/60001/content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc File content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc (right): https://codereview.chromium.org/2928793003/diff/60001/content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc#newcode35 content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc:35: "body { height: 10000px;" This brace style is atypical ...
3 years, 6 months ago (2017-06-09 18:13:12 UTC) #24
sahel
https://codereview.chromium.org/2928793003/diff/60001/content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc File content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc (right): https://codereview.chromium.org/2928793003/diff/60001/content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc#newcode35 content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc:35: "body { height: 10000px;" On 2017/06/09 18:13:11, tdresser wrote: ...
3 years, 6 months ago (2017-06-13 15:43:20 UTC) #37
tdresser
Thanks! Sorry, I should have thought of this when asking you to split out the ...
3 years, 6 months ago (2017-06-13 15:48:51 UTC) #38
sahel
On 2017/06/13 15:48:51, tdresser wrote: > Thanks! > > Sorry, I should have thought of ...
3 years, 6 months ago (2017-06-14 19:07:04 UTC) #39
sahel
https://codereview.chromium.org/2928793003/diff/60001/content/browser/renderer_host/render_widget_host_input_event_router.cc File content/browser/renderer_host/render_widget_host_input_event_router.cc (right): https://codereview.chromium.org/2928793003/diff/60001/content/browser/renderer_host/render_widget_host_input_event_router.cc#newcode324 content/browser/renderer_host/render_widget_host_input_event_router.cc:324: wheel_target_.target = nullptr; On 2017/06/13 15:48:50, tdresser wrote: > ...
3 years, 6 months ago (2017-06-14 19:09:43 UTC) #40
tdresser
LGTM with nits. https://codereview.chromium.org/2928793003/diff/180001/content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc File content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc (right): https://codereview.chromium.org/2928793003/diff/180001/content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc#newcode160 content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc:160: wheel_event.phase = blink::WebMouseWheelEvent::kPhaseBegan; Couldn't you set ...
3 years, 6 months ago (2017-06-15 13:40:01 UTC) #45
bokan
Some cleanup suggestions but nothing significant. lgtm % comments https://codereview.chromium.org/2928793003/diff/180001/content/browser/renderer_host/render_widget_host_input_event_router.cc File content/browser/renderer_host/render_widget_host_input_event_router.cc (right): https://codereview.chromium.org/2928793003/diff/180001/content/browser/renderer_host/render_widget_host_input_event_router.cc#newcode288 content/browser/renderer_host/render_widget_host_input_event_router.cc:288: ...
3 years, 6 months ago (2017-06-15 15:47:18 UTC) #48
sahel
https://codereview.chromium.org/2928793003/diff/180001/content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc File content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc (right): https://codereview.chromium.org/2928793003/diff/180001/content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc#newcode160 content/browser/renderer_host/input/wheel_scroll_latching_browsertest.cc:160: wheel_event.phase = blink::WebMouseWheelEvent::kPhaseBegan; On 2017/06/15 13:40:01, tdresser wrote: > ...
3 years, 6 months ago (2017-06-16 14:56:20 UTC) #55
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/2928793003/220001
3 years, 6 months ago (2017-06-16 15:27:07 UTC) #58
commit-bot: I haz the power
Committed patchset #7 (id:220001) as https://chromium.googlesource.com/chromium/src/+/8aa8c38005ee36bc441138c81a5cf165fb6514a5
3 years, 6 months ago (2017-06-16 15:32:37 UTC) #61
nyquist
3 years, 6 months ago (2017-06-16 21:18:12 UTC) #62
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:220001) has been created in
https://codereview.chromium.org/2943183002/ by nyquist@chromium.org.

The reason for reverting is: Flaky on Android Tests buildbot.

First breaking build:
https://uberchromegw.corp.google.com/i/chromium.linux/builders/Android%20Test....

Powered by Google App Engine
This is Rietveld 408576698