protected int getLeftXFromCentreX(int mousex, HiddenColumns hidden)
{
int vpx = Math.round((float) mousex * alwidth / width);
- return hidden.findColumnPosition(hidden.subtractVisibleColumns(
- ranges.getViewportWidth() / 2, vpx));
+ return hidden.subtractVisibleColumns(ranges.getViewportWidth() / 2,
+ vpx);
}
@Override
protected int getTopYFromCentreY(int mousey, HiddenSequences hidden)
{
int vpy = Math.round((float) mousey * alheight / sequencesHeight);
- return hidden.findIndexWithoutHiddenSeqs(hidden.subtractVisibleRows(
- ranges.getViewportHeight() / 2, vpy));
+ return hidden.subtractVisibleRows(ranges.getViewportHeight() / 2, vpy);
}
}