readerrolling(fix): do not emit PageUpdate event until document is ready

This commit is contained in:
Qingping Hou
2016-10-04 10:38:32 -07:00
parent c998120a78
commit abbb72b6d3
4 changed files with 32 additions and 11 deletions

View File

@@ -97,7 +97,7 @@ function ReaderFont:onReadSettings(config)
or DCREREADER_CONFIG_DEFAULT_FONT_GAMMA
self.ui.document:setGammaIndex(self.gamma_index)
-- Dirty hack: we have to add folloing call in order to set
-- Dirty hack: we have to add following call in order to set
-- m_is_rendered(member of LVDocView) to true. Otherwise position inside
-- document will be reset to 0 on first view render.
-- So far, I don't know why this call will alter the value of m_is_rendered.