Author: Christian Lopes
Date: 2010-01-29 14:27:23 -0800 (Fri, 29 Jan 2010)
New Revision: 19074

Modified:
   
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/ApplicationMediator.as
Log:
Fixed bug #2142: The pan control shortcut keys pan to the opposite direction 

Modified: 
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/ApplicationMediator.as
===================================================================
--- 
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/ApplicationMediator.as
    2010-01-29 21:42:17 UTC (rev 19073)
+++ 
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/ApplicationMediator.as
    2010-01-29 22:27:23 UTC (rev 19074)
@@ -285,13 +285,13 @@
             var amount:Number = 16;
 
             if (e.keyCode == Keyboard.UP)
+                panY = -amount;
+            else if (e.keyCode == Keyboard.DOWN)
                 panY = amount;
-            else if (e.keyCode == Keyboard.DOWN)
-                panY = -amount;
             else if (e.keyCode == Keyboard.LEFT)
+                panX = -amount;
+            else if (e.keyCode == Keyboard.RIGHT)
                 panX = amount;
-            else if (e.keyCode == Keyboard.RIGHT)
-                panX = -amount;
             else if (e.charCode == 43) // '+'
                 panZoomBox.zoomInButton.dispatchEvent(new 
MouseEvent(MouseEvent.CLICK));
             else if (e.charCode == 45) // '-'

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to