Some more repaint/refresh tweaks (#4578)

* ReaderView & ReaderPaging panning should *probably* keep using "partial" ;). (Fix #4575)
* Try to avoid unnecessary footer repaints (mini status bar)
This commit is contained in:
NiLuJe
2019-02-11 03:28:46 +01:00
committed by GitHub
parent e123cc5dca
commit b274080846
3 changed files with 22 additions and 17 deletions

View File

@@ -610,7 +610,7 @@ function ReaderView:PanningUpdate(dx, dy)
self.visible_area:offsetWithin(self.page_area, dx, dy)
if self.visible_area ~= old then
-- flag a repaint
UIManager:setDirty(self.dialog, "fast")
UIManager:setDirty(self.dialog, "partial")
logger.dbg("on pan: page_area", self.page_area)
logger.dbg("on pan: visible_area", self.visible_area)
self.ui:handleEvent(
@@ -627,7 +627,7 @@ function ReaderView:PanningStart(x, y)
self.visible_area = self.panning_visible_area:copy()
self.visible_area:offsetWithin(self.page_area, x, y)
self.ui:handleEvent(Event:new("ViewRecalculate", self.visible_area, self.page_area))
UIManager:setDirty(self.dialog, "fast")
UIManager:setDirty(self.dialog, "partial")
end
function ReaderView:PanningStop()