}
}
- // scalewidth will normally be screenwidth,
public void drawScale(Graphics g, int startx, int endx, int width,
int height)
{
}
}
- public boolean isMouseDragging()
+ boolean isMouseDragging()
{
return mouseDragging;
}
SearchResultsI lastSearchResults;
/**
- * Create a new SeqPanel.
+ * Constructor
*
* @param viewport
* @param alignPanel
* start scrolling if mouse dragging, whether the drag started
* in the scale panel or this panel
*/
- if (ap.getScalePanel().isMouseDragging())
+ if (mouseDragging || ap.getScalePanel().isMouseDragging())
{
- ap.getScalePanel().mouseExited(e);
- }
- else if (mouseDragging && scrollThread == null)
- {
- startScrolling(e.getPoint());
+ startScrolling(new Point(e.getX(), 0));
}
}