瀏覽代碼

Rebound Camera Movement to RMB

Jan Enders 8 年之前
父節點
當前提交
f74957232e

+ 2 - 2
scopviz/src/main/java/de/tu_darmstadt/informatik/tk/scopviz/ui/handlers/MyMouseManager.java

@@ -210,7 +210,7 @@ public class MyMouseManager extends DefaultMouseManager {
 
 			// Middle Click -> The User wants to Pan the Camera, record the
 			// current Position and View Center
-		} else if (event.getButton() == MouseEvent.BUTTON2) {
+		} else if (event.getButton() == MouseEvent.BUTTON3) {
 			Camera cam = Main.getInstance().getGraphManager().getView().getCamera();
 			oldMousePos = cam.transformPxToGu(event.getX(), event.getY());
 			oldViewCenter = cam.getViewCenter();
@@ -231,7 +231,7 @@ public class MyMouseManager extends DefaultMouseManager {
 
 			// If the Middle Mouse Button is pressed, move the Camera following
 			// the dragging gesture
-		} else if (event.getButton() == MouseEvent.BUTTON2) {
+		} else if (event.getButton() == MouseEvent.BUTTON3) {
 
 			Camera cam = Main.getInstance().getGraphManager().getView().getCamera();
 			Point3 newMousePos = cam.transformPxToGu(event.getX(), event.getY());