add setViewMode handler for readerrolling and readerview

This commit is contained in:
Qingping Hou
2013-01-07 07:05:48 -05:00
parent ac1cf212d1
commit 2f36d6604b
2 changed files with 10 additions and 1 deletions

View File

@@ -163,7 +163,7 @@ function ReaderRolling:onZoom()
end
--[[
remember to signal this event the document has been zoomed,
remember to signal this event when the document has been zoomed,
font has been changed, or line height has been changed.
--]]
function ReaderRolling:onUpdatePos()
@@ -178,6 +178,10 @@ function ReaderRolling:onUpdatePos()
return true
end
function ReaderRolling:onSetViewMode(new_mode)
self.ui.view_mode = new_mode
end
--[[
PosUpdate event is used to signal other widgets that pos has been changed.
--]]