diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-16 23:33:24 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-16 23:33:24 +0000 |
commit | 80cc00a3acaee44c537d72c8ccd9f0ad1103df3a (patch) | |
tree | 296c4c223c9ab13a19f2621be9de2cdf63c20ce5 /webkit/glue/webinputevent_linux.cc | |
parent | 48c8fa63122510b2c51c6608a93b30e94192e679 (diff) | |
download | chromium_src-80cc00a3acaee44c537d72c8ccd9f0ad1103df3a.zip chromium_src-80cc00a3acaee44c537d72c8ccd9f0ad1103df3a.tar.gz chromium_src-80cc00a3acaee44c537d72c8ccd9f0ad1103df3a.tar.bz2 |
DOM wheel scroll delta fix, Chromium side. This depends on the WebKit side changes and can't be committed without first landing them and adding DEPS to this.
Review URL: http://codereview.chromium.org/48037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11801 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webinputevent_linux.cc')
-rw-r--r-- | webkit/glue/webinputevent_linux.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/glue/webinputevent_linux.cc b/webkit/glue/webinputevent_linux.cc index 799bbb2..8d81966 100644 --- a/webkit/glue/webinputevent_linux.cc +++ b/webkit/glue/webinputevent_linux.cc @@ -127,18 +127,24 @@ WebMouseWheelEvent::WebMouseWheelEvent(const GdkEventScroll* event) { delta_x = 0; delta_y = 0; + wheel_ticks_x = 0; + wheel_ticks_y = 0; switch (event->direction) { case GDK_SCROLL_UP: delta_y = kScrollbarPixelsPerTick; + wheel_ticks_y = 1; break; case GDK_SCROLL_DOWN: delta_y = -kScrollbarPixelsPerTick; + wheel_ticks_y = -1; break; case GDK_SCROLL_LEFT: delta_x = kScrollbarPixelsPerTick; + wheel_ticks_x = -1; // Match Windows positive/negative orientation break; case GDK_SCROLL_RIGHT: delta_x = -kScrollbarPixelsPerTick; + wheel_ticks_x = 1; break; default: break; |