[chore] Deprecate TapForward/TapBackward (#4689)

Also fix previous page action in gesture manager.
This commit is contained in:
Frans de Jonge
2019-03-01 16:05:03 +01:00
committed by GitHub
parent 87b6217696
commit ba4bf7243d
5 changed files with 31 additions and 39 deletions

View File

@@ -512,11 +512,11 @@ function ReaderGesture:gestureAction(action)
elseif action == "page_jmp_fwd_10" then
self:pageUpdate(10)
elseif action == "page_jmp_fwd_1" then
self.ui:handleEvent(Event:new("TapForward"))
self.ui:handleEvent(Event:new("GotoViewRel", 1))
elseif action == "page_jmp_back_10" then
self:pageUpdate(-10)
elseif action == "page_jmp_back_1" then
self:pageUpdate(-1)
self.ui:handleEvent(Event:new("GotoViewRel", -1))
elseif action == "next_chapter" then
self.ui:handleEvent(Event:new("GotoNextChapter"))
elseif action == "prev_chapter" then