|
|
@ -786,7 +786,7 @@ function ReaderRolling:onUpdatePos()
|
|
|
|
return true
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
-- Calling this now ensures the re-rendering is done by crengine
|
|
|
|
-- Calling this now ensures the re-rendering is done by crengine
|
|
|
|
-- so the delayed updatePos() has good info and can reposition
|
|
|
|
-- so updatePos() has good info and can reposition
|
|
|
|
-- the previous xpointer accurately:
|
|
|
|
-- the previous xpointer accurately:
|
|
|
|
self.ui.document:getCurrentPos()
|
|
|
|
self.ui.document:getCurrentPos()
|
|
|
|
-- Otherwise, _readMetadata() would do that, but the positionning
|
|
|
|
-- Otherwise, _readMetadata() would do that, but the positionning
|
|
|
@ -794,7 +794,7 @@ function ReaderRolling:onUpdatePos()
|
|
|
|
-- previously because of some bad setDirty() in ConfigDialog widgets
|
|
|
|
-- previously because of some bad setDirty() in ConfigDialog widgets
|
|
|
|
-- that were triggering a full repaint of crengine (so, the needed
|
|
|
|
-- that were triggering a full repaint of crengine (so, the needed
|
|
|
|
-- rerendering) before updatePos() is called.
|
|
|
|
-- rerendering) before updatePos() is called.
|
|
|
|
UIManager:scheduleIn(0.1, function () self:updatePos() end)
|
|
|
|
self:updatePos()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function ReaderRolling:updatePos()
|
|
|
|
function ReaderRolling:updatePos()
|
|
|
|