Chromium Code Reviews
DescriptionDisable 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 #
Messages
Total messages: 12 (0 generated)
|
|||||||||||||||||||||||||||||||||||||