mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add setViewMode handler for readerrolling and readerview
This commit is contained in:
@@ -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