mode = MODE_PAGE_LOCKED;
final Page page = chapterBooklet.getPrevPage();
if (page instanceof DummyPage) {
DummyPage pd = (DummyPage)page;
handleDummyPage(pd.getType(), SCROLL_BOOK_START);
}
if (page instanceof TextPage) {
stopScrolling();
loadPrevPage();
return;
}
}
if (currentPageCanvasPosition <= pageCanvasPositionMin) {
/*
* loading next page
*/
currentPageCanvasPosition = pageCanvasPositionMin;
mode = MODE_PAGE_LOCKED;
final Page page = chapterBooklet.getNextPage();
if (page instanceof DummyPage) {
DummyPage pd = (DummyPage)page;
handleDummyPage(pd.getType(), SCROLL_BOOK_END);
}
if (page instanceof TextPage) {
stopScrolling();
loadNextPage();