considering visible page count in readerrolling

This should fix #660.
This commit is contained in:
chrox
2014-07-03 17:54:30 +08:00
parent e7fc16dd25
commit 9fc048ecfc
3 changed files with 7 additions and 2 deletions

View File

@@ -238,7 +238,8 @@ function ReaderRolling:onGotoViewRel(diff)
end
self:gotoPos(self.current_pos + pan_diff)
elseif self.view.view_mode == "page" then
self:gotoPage(self.current_page + diff)
local page_count = self.ui.document:getVisiblePageCount()
self:gotoPage(self.current_page + diff*page_count)
end
return true
end