add setViewMode handler for readerrolling and readerview
This commit is contained in:
1 parent
ac1cf212d1
commit
2f36d6604b
2 files changed
+10
-1
No files matched your search
@@ -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.
|
||||
--]]
|
||||
|
||||
Reference in new issue
Block a user