@Override
public void mousePressed(MouseEvent evt)
{
- if (SwingUtilities.isRightMouseButton(evt))
- {
- if (!Platform.isAMacAndNotJS())
- {
- // BH - MAC L&F here - forces popup and cancels any drag operation
- showPopupMenu(evt);
- }
+
+ if (Platform.isWinRightButton(evt)) {
+ showPopupMenu(evt);
+ return;
+ }
+ if (SwingUtilities.isRightMouseButton(evt)) {
+ return;
}
- else
- {
// don't do anything if the mouse press is in the overview's box
// (wait to see if it's a drag instead)
// otherwise update the viewport
av.getAlignment().getHiddenSequences(),
av.getAlignment().getHiddenColumns());
}
- }
}
@Override