Dont respond to mouse movements if alignment wrapped
authoramwaterhouse <Andrew Waterhouse>
Tue, 13 Sep 2005 17:45:25 +0000 (17:45 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 13 Sep 2005 17:45:25 +0000 (17:45 +0000)
src/jalview/gui/OverviewPanel.java

index 7086a51..635e455 100755 (executable)
@@ -109,6 +109,7 @@ public class OverviewPanel extends JPanel implements Runnable
             {\r
                 public void mouseDragged(MouseEvent evt)\r
                 {\r
+                  if(!av.wrapAlignment)\r
                     doMouseDragged(evt);\r
                 }\r
             });\r
@@ -117,11 +118,13 @@ public class OverviewPanel extends JPanel implements Runnable
             {\r
                 public void mousePressed(MouseEvent evt)\r
                 {\r
+                  if(!av.wrapAlignment)\r
                     doMousePressed(evt);\r
                 }\r
 \r
                 public void mouseReleased(MouseEvent evt)\r
                 {\r
+                  if(!av.wrapAlignment)\r
                     doMouseReleased(evt);\r
                 }\r
             });\r