av.setSelectionGroup(stretchGroup);\r
}\r
\r
- if (av.cursorMode)\r
- {\r
- seqCanvas.cursorX = findRes(evt);\r
- seqCanvas.cursorY = findSeq(evt);\r
- seqCanvas.repaint();\r
- return;\r
- }\r
-\r
-\r
\r
// DETECT RIGHT MOUSE BUTTON IN AWT\r
if ( (evt.getModifiers() & InputEvent.BUTTON3_MASK) ==\r
this.add(popup);\r
popup.show(this, evt.getX(), evt.getY());\r
ap.repaint();\r
+ return;\r
}\r
- else\r
+\r
+ if (av.cursorMode)\r
{\r
+ seqCanvas.cursorX = findRes(evt);\r
+ seqCanvas.cursorY = findSeq(evt);\r
+ seqCanvas.repaint();\r
+ return;\r
+ }\r
+\r
//Only if left mouse button do we want to change group sizes\r
\r
if (stretchGroup == null)\r
}\r
\r
}\r
-\r
- if (stretchGroup != null && stretchGroup.getEndRes() == res)\r
- {\r
- // Edit end res position of selected group\r
- changeEndRes = true;\r
- }\r
-\r
- else if (stretchGroup != null && stretchGroup.getStartRes() == res)\r
- {\r
- // Edit end res position of selected group\r
- changeStartRes = true;\r
- }\r
- }\r
}\r
\r
public void doMouseReleasedDefineMode(MouseEvent evt)\r