{
SeqPanel sp = alignPanel.getSeqPanel();
MousePos pos = sp.findMousePosition(e);
- if (pos.annotationIndex != -1)
+ if (pos.isOverAnnotation())
{
/*
* mouse is over an annotation label in wrapped mode
mouseDragging = true;
MousePos pos = alignPanel.getSeqPanel().findMousePosition(e);
- if (pos.annotationIndex != -1)
+ if (pos.isOverAnnotation())
{
// mouse is over annotation label in wrapped mode
return;
}
MousePos pos = alignPanel.getSeqPanel().findMousePosition(e);
- if (pos.annotationIndex != -1)
+ if (pos.isOverAnnotation())
{
// mouse is over annotation label in wrapped mode
return;
}
MousePos pos = alignPanel.getSeqPanel().findMousePosition(e);
- if (pos.annotationIndex != -1)
+ if (pos.isOverAnnotation())
{
// mouse is over an annotation label in wrapped mode
return;
scrollThread.running = false;
}
MousePos pos = alignPanel.getSeqPanel().findMousePosition(e);
- if (pos.annotationIndex != -1)
+ if (pos.isOverAnnotation())
{
// mouse is over an annotation label in wrapped mode
return;