2
0
mirror of https://github.com/koreader/koreader synced 2024-11-04 12:00:25 +00:00

replace paging and zoomming order in readerui

This commit is contained in:
chrox 2014-03-11 21:57:21 +08:00
parent 6ae771a7f4
commit 9f50393f35

View File

@ -183,6 +183,12 @@ function ReaderUI:init()
ui = self, ui = self,
document = self.document, document = self.document,
}) })
-- paging controller
table.insert(self, ReaderPaging:new{
dialog = self.dialog,
view = self[1],
ui = self
})
-- zooming controller -- zooming controller
local zoom = ReaderZooming:new{ local zoom = ReaderZooming:new{
dialog = self.dialog, dialog = self.dialog,
@ -190,12 +196,6 @@ function ReaderUI:init()
ui = self ui = self
} }
table.insert(self, zoom) table.insert(self, zoom)
-- paging controller
table.insert(self, ReaderPaging:new{
dialog = self.dialog,
view = self[1],
ui = self
})
-- panning controller -- panning controller
table.insert(self, ReaderPanning:new{ table.insert(self, ReaderPanning:new{
dialog = self.dialog, dialog = self.dialog,