support goto relative page number
We can input relative page number now in the reader goto dialog. Goto "+4" will page forward 4 pages and goto "-4" will page backward 4 pages. This implements #1437.
This commit is contained in:
1 parent
ea76d91ed4
commit
992e769aaf
3 files changed
+25
-18
No files matched your search
@@ -799,6 +799,11 @@ function ReaderPaging:onGotoPage(number)
|
||||
return true
|
||||
end
|
||||
|
||||
function ReaderPaging:onGotoRelativePage(number)
|
||||
self:gotoPage(self.current_page + number)
|
||||
return true
|
||||
end
|
||||
|
||||
function ReaderPaging:onGotoPercentage(percentage)
|
||||
if percentage < 0 then percentage = 0 end
|
||||
if percentage > 1 then percentage = 1 end
|
||||
|
||||
Reference in new issue
Block a user