@Override
public void mouseExited(MouseEvent e)
{
- if (ap.getScalePanel().isMouseDragging())
- {
- ap.getScalePanel().mouseExited(e);
- return;
- }
lastMousePosition = null;
ap.alignFrame.setStatus(" ");
+
if (av.getWrapAlignment())
{
return;
}
- if (mouseDragging && scrollThread == null)
+
+ /*
+ * start scrolling if mouse dragging, whether the drag started
+ * in the scale panel or this panel
+ */
+ if (ap.getScalePanel().isMouseDragging())
+ {
+ ap.getScalePanel().mouseExited(e);
+ }
+ else if (mouseDragging && scrollThread == null)
{
startScrolling(e.getPoint());
}