[UX] Next/Previous Bookmark Gestures (#5968)

Fixes #5965
This commit is contained in:
yparitcher
2020-03-16 11:52:09 -04:00
committed by GitHub
parent 4a5a2eb708
commit 08359ee1b6
6 changed files with 39 additions and 55 deletions

View File

@@ -747,4 +747,12 @@ function ReaderUI:switchDocument(new_file)
self:showReader(new_file)
end
function ReaderUI:getCurrentPage()
if self.document.info.has_pages then
return self.paging.current_page
else
return self.document:getCurrentPage()
end
end
return ReaderUI