|
|
@ -28,6 +28,8 @@ local action_strings = {
|
|
|
|
page_jmp_fwd_1 = _("Next page"),
|
|
|
|
page_jmp_fwd_1 = _("Next page"),
|
|
|
|
prev_chapter = _("Previous chapter"),
|
|
|
|
prev_chapter = _("Previous chapter"),
|
|
|
|
next_chapter = _("Next chapter"),
|
|
|
|
next_chapter = _("Next chapter"),
|
|
|
|
|
|
|
|
prev_bookmark = _("Previous bookmark"),
|
|
|
|
|
|
|
|
next_bookmark = _("Next bookmark"),
|
|
|
|
go_to = _("Go to"),
|
|
|
|
go_to = _("Go to"),
|
|
|
|
skim = _("Skim"),
|
|
|
|
skim = _("Skim"),
|
|
|
|
back = _("Back"),
|
|
|
|
back = _("Back"),
|
|
|
@ -702,6 +704,8 @@ function ReaderGesture:buildMenu(ges, default)
|
|
|
|
{"page_jmp_fwd_1", not self.is_docless},
|
|
|
|
{"page_jmp_fwd_1", not self.is_docless},
|
|
|
|
{"prev_chapter", not self.is_docless},
|
|
|
|
{"prev_chapter", not self.is_docless},
|
|
|
|
{"next_chapter", not self.is_docless},
|
|
|
|
{"next_chapter", not self.is_docless},
|
|
|
|
|
|
|
|
{"prev_bookmark", not self.is_docless},
|
|
|
|
|
|
|
|
{"next_bookmark", not self.is_docless},
|
|
|
|
{"go_to", true},
|
|
|
|
{"go_to", true},
|
|
|
|
{"skim", not self.is_docless},
|
|
|
|
{"skim", not self.is_docless},
|
|
|
|
{"back", true},
|
|
|
|
{"back", true},
|
|
|
@ -1300,6 +1304,10 @@ function ReaderGesture:gestureAction(action, ges)
|
|
|
|
self.ui:handleEvent(Event:new("GotoNextChapter"))
|
|
|
|
self.ui:handleEvent(Event:new("GotoNextChapter"))
|
|
|
|
elseif action == "prev_chapter" then
|
|
|
|
elseif action == "prev_chapter" then
|
|
|
|
self.ui:handleEvent(Event:new("GotoPrevChapter"))
|
|
|
|
self.ui:handleEvent(Event:new("GotoPrevChapter"))
|
|
|
|
|
|
|
|
elseif action == "next_bookmark" then
|
|
|
|
|
|
|
|
self.ui:handleEvent(Event:new("GotoNextBookmarkFromPage"))
|
|
|
|
|
|
|
|
elseif action == "prev_bookmark" then
|
|
|
|
|
|
|
|
self.ui:handleEvent(Event:new("GotoPreviousBookmarkFromPage"))
|
|
|
|
elseif action == "go_to" then
|
|
|
|
elseif action == "go_to" then
|
|
|
|
self.ui:handleEvent(Event:new("ShowGotoDialog"))
|
|
|
|
self.ui:handleEvent(Event:new("ShowGotoDialog"))
|
|
|
|
elseif action == "skim" then
|
|
|
|
elseif action == "skim" then
|
|
|
@ -1564,12 +1572,7 @@ function ReaderGesture:multiswipeAction(multiswipe_directions, ges)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function ReaderGesture:pageUpdate(page)
|
|
|
|
function ReaderGesture:pageUpdate(page)
|
|
|
|
local curr_page
|
|
|
|
local curr_page = self.ui:getCurrentPage()
|
|
|
|
if self.document.info.has_pages then
|
|
|
|
|
|
|
|
curr_page = self.ui.paging.current_page
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
curr_page = self.document:getCurrentPage()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
if curr_page and page then
|
|
|
|
if curr_page and page then
|
|
|
|
curr_page = curr_page + page
|
|
|
|
curr_page = curr_page + page
|
|
|
|
self.ui:handleEvent(Event:new("GotoPage", curr_page))
|
|
|
|
self.ui:handleEvent(Event:new("GotoPage", curr_page))
|
|
|
|