Commit a33973ba authored by eric@webkit.org's avatar eric@webkit.org
Browse files

2009-12-02 Evan Stade <estade@chromium.org>

        Reviewed by Darin Fisher.

        https://bugs.webkit.org/show_bug.cgi?id=32029
        Mousewheel event delta has reversed sign on Linux Chrome.

        No new tests (layout tests don't cover event conversion code).
        Manual test: http://www.switchonthecode.com/tutorials/javascript-tutorial-the-scroll-wheel

        * src/gtk/WebInputEventFactory.cpp:
        (WebKit::WebInputEventFactory::mouseWheelEvent):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51614 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent de2b1c4a
2009-12-02 Evan Stade <estade@chromium.org>
Reviewed by Darin Fisher.
https://bugs.webkit.org/show_bug.cgi?id=32029
Mousewheel event delta has reversed sign on Linux Chrome.
No new tests (layout tests don't cover event conversion code).
Manual test: http://www.switchonthecode.com/tutorials/javascript-tutorial-the-scroll-wheel
* src/gtk/WebInputEventFactory.cpp:
(WebKit::WebInputEventFactory::mouseWheelEvent):
2009-12-02 Anton Muhin <antonm@chromium.org>
Reviewed by Adam Barth.
......
......@@ -482,11 +482,11 @@ WebMouseWheelEvent WebInputEventFactory::mouseWheelEvent(const GdkEventScroll* e
break;
case GDK_SCROLL_LEFT:
result.deltaX = scrollbarPixelsPerTick;
result.wheelTicksX = -1; // Match Windows positive/negative orientation
result.wheelTicksX = 1;
break;
case GDK_SCROLL_RIGHT:
result.deltaX = -scrollbarPixelsPerTick;
result.wheelTicksX = 1;
result.wheelTicksX = -1;
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment