}
this.startRes = startres;
- if (endres >= al.getWidth())
- {
- endres = al.getWidth() - 1;
- }
- else if (endres < 0)
+ if (endres < 0)
{
endres = 0;
}
public void scrollToWrappedVisible(int res)
{
- if (res < startRes || res > endRes)
- {
- setEndSeq(res / getViewportWidth());
- }
-
+ setStartRes(res);
}
}