add ReaderRolling:onRedrawCurrentView()

This commit is contained in:
Qingping Hou
2013-01-07 16:43:28 -05:00
parent 59a424203b
commit db49f1b09c
2 changed files with 10 additions and 0 deletions

View File

@@ -183,6 +183,15 @@ function ReaderRolling:onSetViewMode(new_mode)
self.ui.view_mode = new_mode
end
function ReaderRolling:onRedrawCurrentView()
if self.view_mode == "page" then
self.ui:handleEvent(Event:new("PageUpdate", self.current_page))
else
self.ui:handleEvent(Event:new("PosUpdate", self.current_pos))
end
return true
end
--[[
PosUpdate event is used to signal other widgets that pos has been changed.
--]]