adapt widgets to new refresh/repaint API
This commit is contained in:
1 parent
229c5ad61c
commit
82c26b1f18
24 files changed
+127
-93
No files matched your search
@@ -314,7 +314,8 @@ function ReaderPaging:onSwipe(arg, ges)
|
||||
self:onPagingRel(-1)
|
||||
end
|
||||
else
|
||||
UIManager.full_refresh = true
|
||||
-- trigger full refresh
|
||||
UIManager:setDirty(nil, "full")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -343,7 +344,8 @@ function ReaderPaging:onPanRelease(arg, ges)
|
||||
end
|
||||
else
|
||||
self.last_pan_relative_y = 0
|
||||
UIManager.full_refresh = true
|
||||
-- trigger full refresh
|
||||
UIManager:setDirty(nil, "full")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -649,7 +651,7 @@ function ReaderPaging:onScrollPageRel(diff)
|
||||
end
|
||||
-- update current pageno to the very last part in current view
|
||||
self:gotoPage(self.view.page_states[#self.view.page_states].page, "scrolling")
|
||||
UIManager:setDirty(self.view.dialog)
|
||||
UIManager:setDirty(self.view.dialog, "partial")
|
||||
end
|
||||
|
||||
function ReaderPaging:onGotoPageRel(diff)
|
||||
|
||||
Reference in new issue
Block a user