|
|
@ -426,8 +426,10 @@ function ReaderPaging:onSwipe(_, ges)
|
|
|
|
local direction = BD.flipDirectionIfMirroredUILayout(ges.direction)
|
|
|
|
local direction = BD.flipDirectionIfMirroredUILayout(ges.direction)
|
|
|
|
if self.bookmark_flipping_mode then
|
|
|
|
if self.bookmark_flipping_mode then
|
|
|
|
self:bookmarkFlipping(self.current_page, ges)
|
|
|
|
self:bookmarkFlipping(self.current_page, ges)
|
|
|
|
|
|
|
|
return true
|
|
|
|
elseif self.page_flipping_mode and self.original_page then
|
|
|
|
elseif self.page_flipping_mode and self.original_page then
|
|
|
|
self:_gotoPage(self.original_page)
|
|
|
|
self:_gotoPage(self.original_page)
|
|
|
|
|
|
|
|
return true
|
|
|
|
elseif direction == "west" then
|
|
|
|
elseif direction == "west" then
|
|
|
|
if G_reader_settings:nilOrFalse("page_turns_disable_swipe") then
|
|
|
|
if G_reader_settings:nilOrFalse("page_turns_disable_swipe") then
|
|
|
|
if self.inverse_reading_order then
|
|
|
|
if self.inverse_reading_order then
|
|
|
@ -435,6 +437,7 @@ function ReaderPaging:onSwipe(_, ges)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
self:onGotoViewRel(1)
|
|
|
|
self:onGotoViewRel(1)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
elseif direction == "east" then
|
|
|
|
elseif direction == "east" then
|
|
|
|
if G_reader_settings:nilOrFalse("page_turns_disable_swipe") then
|
|
|
|
if G_reader_settings:nilOrFalse("page_turns_disable_swipe") then
|
|
|
@ -443,12 +446,8 @@ function ReaderPaging:onSwipe(_, ges)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
self:onGotoViewRel(-1)
|
|
|
|
self:onGotoViewRel(-1)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
else
|
|
|
|
|
|
|
|
-- update footer (time & battery)
|
|
|
|
|
|
|
|
self.view.footer:onUpdateFooter()
|
|
|
|
|
|
|
|
-- trigger full refresh
|
|
|
|
|
|
|
|
UIManager:setDirty(nil, "full")
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|