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.
This commit is contained in:
Paulo Matias
2014-01-17 23:51:52 -02:00
parent b1e9b35da8
commit f441135772

View File

@@ -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