Update footer when refreshing screen with diagonal swipe

And added diagonal swipe support to readerrolling.
This commit is contained in:
poire-z
2017-03-19 21:35:18 +01:00
committed by Qingping Hou
parent 00d6403da4
commit 39d1afe37d
4 changed files with 16 additions and 0 deletions

View File

@@ -524,6 +524,10 @@ function ReaderFooter:onPosUpdate(pos)
self:updateFooterPos()
end
function ReaderFooter:onUpdateFooter()
self:updateFooter()
end
-- recalculate footer sizes when document page count is updated
-- see documentation for more info about this event.
ReaderFooter.onUpdatePos = ReaderFooter.updateFooter