mirror of
https://github.com/koreader/koreader.git
synced 2025-12-18 12:02:09 +01:00
considering visible page count in readerrolling
This commit is contained in:
@@ -284,7 +284,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
|
||||
|
||||
Reference in New Issue
Block a user