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

Issue 212913002: Prevent ctrl+wheel from scrolling in more places (Closed)

Created:
6 years, 9 months ago by Rick Byers
Modified:
6 years, 9 months ago
CC:
blink-reviews, shans, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), eae+blinkwatch, Timothy Loh, dstockwell, dglazkov+blink, darktears, Steve Block, dino_apple.com, Eric Willigers
Visibility:
Public.

Description

Prevent ctrl+wheel from scrolling in more places Chromium now sends ctrl+wheel events to webkit first before using them for zooming. Rather than prevent scrolling for these events in EventHandler::handleWheel, push that check a couple levels deeper into ScrollableArea::handleWheelEvent. In addition to EventHandler, this code is also called by WebPluginScrollbarImpl and so will fix some additional cases. This is mostly already tested by the fast/event/wheelevent-ctrl.html test I added in http://crrev.com/183403002. I've extended that test to cover document and div scrolling cases and ensured it fails reliably if either the ScrollableArea or EventHandler::defaultWheelEventHandler check is removed. BUG=352474, 111059 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170238

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -12 lines) Patch
M LayoutTests/fast/events/wheelevent-ctrl.html View 1 3 chunks +34 lines, -4 lines 0 comments Download
M LayoutTests/fast/events/wheelevent-ctrl-expected.txt View 1 1 chunk +17 lines, -1 line 0 comments Download
M Source/core/page/EventHandler.cpp View 1 chunk +0 lines, -7 lines 0 comments Download
M Source/platform/scroll/ScrollableArea.cpp View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Rick Byers
Rob, Can you please review this little update to the ctrl+wheel handling you recently reviewed? ...
6 years, 9 months ago (2014-03-26 15:14:46 UTC) #1
rjkroege
https://codereview.chromium.org/212913002/diff/1/Source/platform/scroll/ScrollAnimator.cpp File Source/platform/scroll/ScrollAnimator.cpp (right): https://codereview.chromium.org/212913002/diff/1/Source/platform/scroll/ScrollAnimator.cpp#newcode79 Source/platform/scroll/ScrollAnimator.cpp:79: // ctrl+wheel events are used to trigger zooming, not ...
6 years, 9 months ago (2014-03-26 20:03:25 UTC) #2
Rick Byers
On 2014/03/26 20:03:25, rjkroege wrote: > https://codereview.chromium.org/212913002/diff/1/Source/platform/scroll/ScrollAnimator.cpp > File Source/platform/scroll/ScrollAnimator.cpp (right): > > https://codereview.chromium.org/212913002/diff/1/Source/platform/scroll/ScrollAnimator.cpp#newcode79 > ...
6 years, 9 months ago (2014-03-26 20:14:51 UTC) #3
rjkroege
On 2014/03/26 20:14:51, Rick Byers wrote: > On 2014/03/26 20:03:25, rjkroege wrote: > > > ...
6 years, 9 months ago (2014-03-26 20:26:11 UTC) #4
Rick Byers
On 2014/03/26 20:26:11, rjkroege wrote: > On 2014/03/26 20:14:51, Rick Byers wrote: > > On ...
6 years, 9 months ago (2014-03-27 01:12:19 UTC) #5
rjkroege
lgtm
6 years, 9 months ago (2014-03-27 17:57:51 UTC) #6
Rick Byers
Thanks! +vollick for OWNERS
6 years, 9 months ago (2014-03-27 18:23:40 UTC) #7
Ian Vollick
On 2014/03/27 18:23:40, Rick Byers wrote: > Thanks! +vollick for OWNERS Unfortunately I'm not an ...
6 years, 9 months ago (2014-03-27 19:31:15 UTC) #8
Rick Byers
On 2014/03/27 19:31:15, Ian Vollick wrote: > On 2014/03/27 18:23:40, Rick Byers wrote: > > ...
6 years, 9 months ago (2014-03-27 21:29:41 UTC) #9
abarth-chromium
rslgtm
6 years, 9 months ago (2014-03-27 21:32:42 UTC) #10
Rick Byers
The CQ bit was checked by rbyers@chromium.org
6 years, 9 months ago (2014-03-27 23:10:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/212913002/60001
6 years, 9 months ago (2014-03-27 23:10:07 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 00:17:24 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-28 00:17:25 UTC) #14
Rick Byers
The CQ bit was checked by rbyers@chromium.org
6 years, 9 months ago (2014-03-28 00:21:25 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/212913002/60001
6 years, 9 months ago (2014-03-28 00:21:30 UTC) #16
commit-bot: I haz the power
6 years, 9 months ago (2014-03-28 01:22:30 UTC) #17
Message was sent while issue was closed.
Change committed as 170238

Powered by Google App Engine
This is Rietveld 408576698