From f44113577276a4799f92b9ce305bd86b4ee549d9 Mon Sep 17 00:00:00 2001 From: Paulo Matias Date: Fri, 17 Jan 2014 23:51:52 -0200 Subject: [PATCH] Restore north and south swipe gestures Might be useful in pages covered with links, which make it difficult to tap in the correct point for flipping the page. --- frontend/ui/reader/readerrolling.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/ui/reader/readerrolling.lua b/frontend/ui/reader/readerrolling.lua index 8f5abf580..5debdfd5d 100644 --- a/frontend/ui/reader/readerrolling.lua +++ b/frontend/ui/reader/readerrolling.lua @@ -183,7 +183,11 @@ function ReaderRolling:onTapBackward() end function ReaderRolling:onSwipe(arg, ges) - if ges.direction == "west" then + if ges.direction == "north" then + self:onGotoViewRel(1) + elseif ges.direction == "south" then + self:onGotoViewRel(-1) + elseif ges.direction == "west" then self.ui.document:goForward() self:onUpdateXPointer() elseif ges.direction == "east" then