Reader: remove full refresh on vertical swipes

Small diagonal swipes is what can be used for
full refrehes. Tweak a bit how it is done.
This commit is contained in:
poire-z
2021-05-19 22:57:50 +02:00
parent 33744217de
commit 0a3978f60b
3 changed files with 10 additions and 12 deletions

View File

@@ -524,6 +524,7 @@ function ReaderRolling:onSwipe(_, ges)
else
self:onGotoViewRel(1)
end
return true
end
elseif direction == "east" then
if G_reader_settings:nilOrFalse("page_turns_disable_swipe") then
@@ -532,12 +533,8 @@ function ReaderRolling:onSwipe(_, ges)
else
self:onGotoViewRel(-1)
end
return true
end
else
-- update footer (time & battery)
self.view.footer:onUpdateFooter()
-- trigger full refresh
UIManager:setDirty(nil, "full")
end
end