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

Issue 2049323002: [Mac] Don't dispatch wheel events for PhaseMayBegin|Cancelled|Ended (Closed)

Created:
4 years, 6 months ago by chongz
Modified:
4 years, 5 months ago
Reviewers:
dtapuska, Rick Byers
CC:
chromium-reviews, dtapuska+blinkwatch_chromium.org, nzolghadr+blinkwatch_chromium.org, eae+blinkwatch, blink-reviews-events_chromium.org, dglazkov+blink, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac] Don't dispatch wheel events for PhaseMayBegin|Cancelled|Ended Mac will dispatch wheel events with |PlatformWheelEventPhase|, e.g. 1. |PhaseMayBegin| -> |PhaseCancelled| for two finger touch and lift 2. |PhaseMayBegin| -> |PhaseBegan| -> |PhaseChanged|* -> |PhaseEnded| for two finger scroll 3. |PhaseNone| for real mouse wheel scroll Other platforms don't have phase info and only have events similar to |PhaseBegan| and |PhaseChanged|. This CL filters those extra events and only dispatch |PhaseBegan| and |PhaseChanged| for platform interop. Note that |PhaseBegan| usually has non-zero delta, so we want to keep them. Interop: Firefox and Safari doesn't fire events for these phases, so we will match them after CL. BUG=553732 Committed: https://crrev.com/b92d711668477cf2fdbfc961bbefa61d9c7c2810 Cr-Commit-Position: refs/heads/master@{#403719}

Patch Set 1 : Add filter and LayoutTests #

Total comments: 2

Patch Set 2 : dtapuska's review #

Total comments: 2

Patch Set 3 : Use == instead of strcmp() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -0 lines) Patch
M components/test_runner/event_sender.cc View 1 2 4 chunks +35 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/events/mouse-wheel-main-frame-event.html View 1 1 chunk +60 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (31 generated)
chongz
dtapuska@ PTAL, thanks! There seems to be some hit test issue with browser_tests, so I'm ...
4 years, 5 months ago (2016-06-30 18:51:35 UTC) #26
dtapuska
https://codereview.chromium.org/2049323002/diff/330004/components/test_runner/event_sender.cc File components/test_runner/event_sender.cc (right): https://codereview.chromium.org/2049323002/diff/330004/components/test_runner/event_sender.cc#newcode2554 components/test_runner/event_sender.cc:2554: if (!args->PeekNext().IsEmpty()) { This is kind of weird that ...
4 years, 5 months ago (2016-06-30 19:53:00 UTC) #27
chongz
dtapuska@ I've updated as per your comments, PTAL again, thanks! https://codereview.chromium.org/2049323002/diff/330004/components/test_runner/event_sender.cc File components/test_runner/event_sender.cc (right): https://codereview.chromium.org/2049323002/diff/330004/components/test_runner/event_sender.cc#newcode2554 ...
4 years, 5 months ago (2016-07-04 14:12:36 UTC) #28
dtapuska
https://codereview.chromium.org/2049323002/diff/350001/components/test_runner/event_sender.cc File components/test_runner/event_sender.cc (right): https://codereview.chromium.org/2049323002/diff/350001/components/test_runner/event_sender.cc#newcode335 components/test_runner/event_sender.cc:335: if (!strcmp(characters, "phaseNone")) { Why strcmps? and not just ...
4 years, 5 months ago (2016-07-04 14:15:40 UTC) #29
chongz
dtapuska@ PTAL, thanks! https://codereview.chromium.org/2049323002/diff/350001/components/test_runner/event_sender.cc File components/test_runner/event_sender.cc (right): https://codereview.chromium.org/2049323002/diff/350001/components/test_runner/event_sender.cc#newcode335 components/test_runner/event_sender.cc:335: if (!strcmp(characters, "phaseNone")) { On 2016/07/04 ...
4 years, 5 months ago (2016-07-04 17:58:43 UTC) #30
dtapuska
On 2016/07/04 17:58:43, chongz wrote: > dtapuska@ PTAL, thanks! > > https://codereview.chromium.org/2049323002/diff/350001/components/test_runner/event_sender.cc > File components/test_runner/event_sender.cc ...
4 years, 5 months ago (2016-07-04 18:25:32 UTC) #31
chongz
rbyers@ PTAL at this Mac touch pad wheel event issue, thanks!
4 years, 5 months ago (2016-07-04 19:40:51 UTC) #34
Rick Byers
LGTM Note that there's some chance that some site/library has figured this behavior out and ...
4 years, 5 months ago (2016-07-04 20:13:37 UTC) #35
chongz
On 2016/07/04 20:13:37, Rick Byers wrote: > LGTM > > Note that there's some chance ...
4 years, 5 months ago (2016-07-04 20:35:32 UTC) #37
Rick Byers
On 2016/07/04 20:35:32, chongz wrote: > On 2016/07/04 20:13:37, Rick Byers wrote: > > LGTM ...
4 years, 5 months ago (2016-07-04 20:36:49 UTC) #38
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/2049323002/370001
4 years, 5 months ago (2016-07-04 20:51:34 UTC) #40
commit-bot: I haz the power
Committed patchset #3 (id:370001)
4 years, 5 months ago (2016-07-04 22:12:09 UTC) #42
commit-bot: I haz the power
4 years, 5 months ago (2016-07-04 22:14:13 UTC) #44
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b92d711668477cf2fdbfc961bbefa61d9c7c2810
Cr-Commit-Position: refs/heads/master@{#403719}

Powered by Google App Engine
This is Rietveld 408576698