[clutter/clutter-1.10] x11/device-manager-xi2: Flip deltas around



commit a1784f12ca6fa0318f6b447b31c4a49a335524c8
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Apr 20 18:31:58 2012 +0100

    x11/device-manager-xi2: Flip deltas around
    
    Up/down is Y.

 clutter/x11/clutter-device-manager-xi2.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/x11/clutter-device-manager-xi2.c b/clutter/x11/clutter-device-manager-xi2.c
index 144dc3f..b88d5c7 100644
--- a/clutter/x11/clutter-device-manager-xi2.c
+++ b/clutter/x11/clutter-device-manager-xi2.c
@@ -649,9 +649,9 @@ scroll_valuators_changed (ClutterInputDevice *device,
 
           if (direction == CLUTTER_SCROLL_UP ||
               direction == CLUTTER_SCROLL_DOWN)
-            *dx_p = delta;
-          else
             *dy_p = delta;
+          else
+            *dx_p = delta;
         }
 
       n_val += 1;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]