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

Issue 183403002: Disable scrolling on mousewheel events with ctrl modifier set (Closed)

Created:
6 years, 9 months ago by Rick Byers
Modified:
6 years, 9 months ago
Reviewers:
Ian Vollick, rjkroege
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch
Visibility:
Public.

Description

Disable scrolling on mousewheel events with ctrl modifier set Chromium currently swallows all mousewheel events with the ctrl modifier set (for zooming) instead of sending them to the renderer. I plan to change this to align with Firefox and IE - send the event first, and if it goes unhandled then invoke browser zoom. See http://crbug.com/289887 and the linked chromium-dev thread for discussion. In order to do that I need to ensure ctrl+wheel events don't trigger scrolling by default. EventHandler::handleWheelEvent already has an early-out for the ctrl modifier case, but it's not enough since the default wheel handler has already been run. This changes adds an identical early-out to EventHandler::defaultWheelEventHandler. Test depends on EventSender change here: http://crrev.com/253923 BUG=289887 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168088

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -0 lines) Patch
A LayoutTests/fast/events/wheelevent-ctrl.html View 1 chunk +63 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/wheelevent-ctrl-expected.txt View 1 chunk +26 lines, -0 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Rick Byers
Ian, Are you comfortable reviewing this tiny scrolling-related change? I'll have to wait for the ...
6 years, 9 months ago (2014-02-27 18:01:25 UTC) #1
Rick Byers
On 2014/02/27 18:01:25, Rick Byers wrote: > Ian, > Are you comfortable reviewing this tiny ...
6 years, 9 months ago (2014-02-27 23:44:19 UTC) #2
rjkroege
lgtm
6 years, 9 months ago (2014-02-28 00:54:02 UTC) #3
Ian Vollick
On 2014/02/28 00:54:02, rjkroege wrote: > lgtm rslgtm
6 years, 9 months ago (2014-02-28 00:59:44 UTC) #4
Rick Byers
The CQ bit was checked by rbyers@chromium.org
6 years, 9 months ago (2014-02-28 01:00:50 UTC) #5
Rick Byers
On 2014/02/28 00:59:44, Ian Vollick wrote: > On 2014/02/28 00:54:02, rjkroege wrote: > > lgtm ...
6 years, 9 months ago (2014-02-28 01:01:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/183403002/1
6 years, 9 months ago (2014-02-28 01:13:01 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-28 02:54:51 UTC) #8
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=29553
6 years, 9 months ago (2014-02-28 02:54:52 UTC) #9
Ian Vollick
The CQ bit was checked by vollick@chromium.org
6 years, 9 months ago (2014-02-28 04:00:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/183403002/1
6 years, 9 months ago (2014-02-28 04:00:43 UTC) #11
commit-bot: I haz the power
6 years, 9 months ago (2014-02-28 08:13:04 UTC) #12
Message was sent while issue was closed.
Change committed as 168088

Powered by Google App Engine
This is Rietveld 408576698