mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user