mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add screen rotate support
This commit is contained in:
@@ -43,6 +43,7 @@ function ReaderUI:init()
|
||||
-- a view container (so it must be child #1!)
|
||||
self[1] = ReaderView:new{
|
||||
dialog = self.dialog,
|
||||
dimen = self.dimen,
|
||||
ui = self
|
||||
}
|
||||
-- rotation controller
|
||||
@@ -114,6 +115,10 @@ function ReaderUI:init()
|
||||
self:handleEvent(Event:new("SetDimensions", self.dimen))
|
||||
end
|
||||
|
||||
function ReaderUI:onSetDimensions(dimen)
|
||||
self.dimen = dimen
|
||||
end
|
||||
|
||||
function ReaderUI:onClose()
|
||||
DEBUG("closing reader")
|
||||
if self.document then
|
||||
|
||||
Reference in New Issue
Block a user