Revision: 4443
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4443&view=rev
Author:   ossman_
Date:     2011-05-24 11:33:43 +0000 (Tue, 24 May 2011)

Log Message:
-----------
Handle horizontal wheel events and not just vertical.

Modified Paths:
--------------
    trunk/vncviewer/Viewport.cxx

Modified: trunk/vncviewer/Viewport.cxx
===================================================================
--- trunk/vncviewer/Viewport.cxx        2011-05-24 11:32:36 UTC (rev 4442)
+++ trunk/vncviewer/Viewport.cxx        2011-05-24 11:33:43 UTC (rev 4443)
@@ -215,10 +215,15 @@
       buttonMask |= 4;
 
     if (event == FL_MOUSEWHEEL) {
+      wheelMask = 0;
       if (Fl::event_dy() < 0)
-        wheelMask = 8;
-      else
-        wheelMask = 16;
+        wheelMask |= 8;
+      if (Fl::event_dy() > 0)
+        wheelMask |= 16;
+      if (Fl::event_dx() < 0)
+        wheelMask |= 32;
+      if (Fl::event_dx() > 0)
+        wheelMask |= 64;
 
       // A quick press of the wheel "button", followed by a immediate
       // release below


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to