Reviewed by Sam.
No regression test possible.
* platform/win/WheelEventWin.cpp:
(WebCore::PlatformWheelEvent::PlatformWheelEvent): Use a negative
delta when scrolling right to match EventHandler's expectations (which
are based on AppKit).
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25803
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-09-29 Adam Roben <aroben@apple.com>
+
+ Fix <rdar://4965715> Horizontal scrollwheel scrolling moves in opposite direction on Vista
+
+ Reviewed by Sam.
+
+ No regression test possible.
+
+ * platform/win/WheelEventWin.cpp:
+ (WebCore::PlatformWheelEvent::PlatformWheelEvent): Use a negative
+ delta when scrolling right to match EventHandler's expectations (which
+ are based on AppKit).
+
2007-09-28 Kevin Decker <kdecker@apple.com>
Reviewed by Mark Rowe
{
float delta = short(HIWORD(wParam)) / (float)WHEEL_DELTA;
if (isHorizontal) {
- m_deltaX = delta;
+ // Windows sends a positive delta for scrolling right, while AppKit
+ // sends a negative delta. EventHandler expects the AppKit values,
+ // so we have to negate our horizontal delta to match.
+ m_deltaX = -delta;
m_deltaY = 0;
} else {
m_deltaX = 0;