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

Issue 23034006: WheelEvent's deltaX/deltaY should report real amount of pixels scrolled (Closed)

Created:
7 years, 4 months ago by do-not-use
Modified:
7 years, 4 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org, Masayuki Nakano (Mozilla Japan
Visibility:
Public.

Description

WheelEvent's deltaX/deltaY should report real amount of pixels scrolled As per the specification, the DOM3 WheelEvent's deltaX/deltaY should report the real amount of pixels scrolled. This is also the way IE and Firefox behave. However, Blink was reporting the number of mouse wheel ticks multiplied by a multiplier (120) which does not necessarily match the real amount of pixels that is scrolled. R=arv BUG=227454 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156603

Patch Set 1 #

Patch Set 2 : Forgot to remove debug #

Patch Set 3 : Fix typo in test #

Total comments: 7

Patch Set 4 : Simplify test case #

Patch Set 5 : No Change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -51 lines) Patch
M LayoutTests/fast/events/wheelevent-basic.html View 1 2 3 2 chunks +25 lines, -22 lines 0 comments Download
M LayoutTests/fast/events/wheelevent-basic-expected.txt View 1 2 2 chunks +12 lines, -3 lines 0 comments Download
M Source/core/dom/WheelEvent.h View 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/dom/WheelEvent.cpp View 1 4 chunks +8 lines, -15 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/WebInputEventConversion.cpp View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
do-not-use
7 years, 4 months ago (2013-08-22 08:15:17 UTC) #1
arv (Not doing code reviews)
https://codereview.chromium.org/23034006/diff/7001/LayoutTests/fast/events/wheelevent-basic.html File LayoutTests/fast/events/wheelevent-basic.html (right): https://codereview.chromium.org/23034006/diff/7001/LayoutTests/fast/events/wheelevent-basic.html#newcode57 LayoutTests/fast/events/wheelevent-basic.html:57: <div id="target" style="border:solid 1px green; width:220px; height:70px; overflow-x:scroll; overflow-y:scroll; ...
7 years, 4 months ago (2013-08-22 14:15:48 UTC) #2
do-not-use
https://codereview.chromium.org/23034006/diff/7001/LayoutTests/fast/events/wheelevent-basic.html File LayoutTests/fast/events/wheelevent-basic.html (right): https://codereview.chromium.org/23034006/diff/7001/LayoutTests/fast/events/wheelevent-basic.html#newcode57 LayoutTests/fast/events/wheelevent-basic.html:57: <div id="target" style="border:solid 1px green; width:220px; height:70px; overflow-x:scroll; overflow-y:scroll; ...
7 years, 4 months ago (2013-08-22 14:46:03 UTC) #3
do-not-use
https://codereview.chromium.org/23034006/diff/7001/LayoutTests/fast/events/wheelevent-basic.html File LayoutTests/fast/events/wheelevent-basic.html (right): https://codereview.chromium.org/23034006/diff/7001/LayoutTests/fast/events/wheelevent-basic.html#newcode57 LayoutTests/fast/events/wheelevent-basic.html:57: <div id="target" style="border:solid 1px green; width:220px; height:70px; overflow-x:scroll; overflow-y:scroll; ...
7 years, 4 months ago (2013-08-22 15:08:21 UTC) #4
arv (Not doing code reviews)
https://codereview.chromium.org/23034006/diff/7001/Source/core/dom/WheelEvent.cpp File Source/core/dom/WheelEvent.cpp (right): https://codereview.chromium.org/23034006/diff/7001/Source/core/dom/WheelEvent.cpp#newcode55 Source/core/dom/WheelEvent.cpp:55: , m_wheelDelta(initializer.wheelDeltaX ? initializer.wheelDeltaX : -initializer.deltaX, initializer.wheelDeltaY ? initializer.wheelDeltaY ...
7 years, 4 months ago (2013-08-22 15:25:15 UTC) #5
do-not-use
On 2013/08/22 15:25:15, arv wrote: > https://codereview.chromium.org/23034006/diff/7001/Source/core/dom/WheelEvent.cpp > File Source/core/dom/WheelEvent.cpp (right): > > https://codereview.chromium.org/23034006/diff/7001/Source/core/dom/WheelEvent.cpp#newcode55 > ...
7 years, 4 months ago (2013-08-22 15:35:05 UTC) #6
arv (Not doing code reviews)
LGTM
7 years, 4 months ago (2013-08-22 16:47:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/23034006/14007
7 years, 4 months ago (2013-08-22 17:07:38 UTC) #8
commit-bot: I haz the power
Retried try job too often on blink_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_presubmit&number=5816
7 years, 4 months ago (2013-08-22 17:18:22 UTC) #9
do-not-use
Still missing LGTM for the Source/web folder.
7 years, 4 months ago (2013-08-22 18:41:13 UTC) #10
jochen (gone - plz use gerrit)
lgtm
7 years, 4 months ago (2013-08-22 21:46:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/23034006/14007
7 years, 4 months ago (2013-08-22 21:48:30 UTC) #12
commit-bot: I haz the power
7 years, 4 months ago (2013-08-23 00:45:22 UTC) #13
Message was sent while issue was closed.
Change committed as 156603

Powered by Google App Engine
This is Rietveld 408576698