Hello
Sometimes when swiping very fast, canScrollHorizontally is not getting called. This results in the viewpager scrolling to the next item instead of scrolling through all the pdf pages. Is there a way to fix this? Is there was a way to detect when a page is rendering/rendered? Maybe I can disable the viewpager from swiping.
My implementation of canScrollHorizontally is based on previous threads here:
@Override
public boolean canScrollHorizontally(int direction) {
if (direction < 0) {
final boolean hasReachedLeftEdge = m_view.vGetX() == 0;
return !hasReachedLeftEdge;
}
final boolean hasReachedRightEdge = m_view.vGetX() + m_view.vGetWinW() >= m_view.vGetDocW();
return !hasReachedRightEdge;
}
I would appreciate any help on this issue as it is very critical for my work.
Thanks,
Rocky