From 4cbaedf58259f19764a4187df3142198d838222c Mon Sep 17 00:00:00 2001 From: ryancnelson Date: Sun, 18 Nov 2012 20:13:41 -0800 Subject: [PATCH] Update src/replicatorg/app/ui/modeling/Tool.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix apparent bug where the code has "if not shiftkey down, then rotate-view" "if shiftkey down, then also, rotate-view" ...  then later, there's a case statement for "TRANSLATE_VIEW", which isn't referenced anywhere else, ever. changing this enables an otherwise non-existent "pan" mode in the UI. --- src/replicatorg/app/ui/modeling/Tool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/replicatorg/app/ui/modeling/Tool.java b/src/replicatorg/app/ui/modeling/Tool.java index aec55bf4a..8438c3954 100644 --- a/src/replicatorg/app/ui/modeling/Tool.java +++ b/src/replicatorg/app/ui/modeling/Tool.java @@ -86,7 +86,7 @@ public void mouseDragged(MouseEvent e) { DragMode mode = DragMode.ROTATE_VIEW; if (Base.isMacOS()) { if (button == MouseEvent.BUTTON1 && !e.isShiftDown()) { mode = DragMode.ROTATE_VIEW; } - else if (button == MouseEvent.BUTTON1 && e.isShiftDown()) { mode = DragMode.ROTATE_VIEW; } + else if (button == MouseEvent.BUTTON1 && e.isShiftDown()) { mode = DragMode.TRANSLATE_VIEW; } } else { if (button == MouseEvent.BUTTON1) { mode = DragMode.ROTATE_VIEW; } else if (button == MouseEvent.BUTTON3) { mode = DragMode.ROTATE_VIEW; }