[haiku-webkit-commits] r220 - webkit/trunk/WebCore/platform/haiku

  • From: webkit@xxxxxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Thu, 25 Feb 2010 19:10:00 +0000

Author: mmlr
Date: Thu Feb 25 19:09:59 2010
New Revision: 220
URL: http://mmlr.dyndns.org/changeset/220

Log:
It seems that the ticks are supposed to be the original value while the delta is
a normalized one. This fixes the opposite behaviour of wheel zooming google
maps for example.

Modified:
   webkit/trunk/WebCore/platform/haiku/PlatformWheelEventHaiku.cpp

Modified: webkit/trunk/WebCore/platform/haiku/PlatformWheelEventHaiku.cpp
==============================================================================
--- webkit/trunk/WebCore/platform/haiku/PlatformWheelEventHaiku.cpp     Thu Feb 
25 19:02:12 2010        (r219)
+++ webkit/trunk/WebCore/platform/haiku/PlatformWheelEventHaiku.cpp     Thu Feb 
25 19:09:59 2010        (r220)
@@ -42,15 +42,15 @@
 PlatformWheelEvent::PlatformWheelEvent(BMessage* message)
     : m_position(message->FindPoint("be:view_where"))
     , m_globalPosition(message->FindPoint("screen_where"))
-    , m_deltaX(message->FindFloat("be:wheel_delta_x"))
-    , m_deltaY(message->FindFloat("be:wheel_delta_y"))
+    , m_deltaX(-message->FindFloat("be:wheel_delta_x"))
+    , m_deltaY(-message->FindFloat("be:wheel_delta_y"))
     , m_wheelTicksX(m_deltaX)
     , m_wheelTicksY(m_deltaY)
     , m_granularity(ScrollByPixelWheelEvent)
     , m_isAccepted(false)
 {
-    m_deltaX *= -Scrollbar::pixelsPerLineStep();
-    m_deltaY *= -Scrollbar::pixelsPerLineStep();
+    m_deltaX *= Scrollbar::pixelsPerLineStep();
+    m_deltaY *= Scrollbar::pixelsPerLineStep();
 
     int32 modifiers = message->FindInt32("modifiers");
     m_shiftKey = modifiers & B_SHIFT_KEY;

Other related posts:

  • » [haiku-webkit-commits] r220 - webkit/trunk/WebCore/platform/haiku - webkit