mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Refactored to use strictly locals
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
ReaderZooming = InputContainer:new{
|
||||
local InputContainer = require("ui/widget/container/inputcontainer")
|
||||
local Device = require("ui/device")
|
||||
local Input = require("ui/input")
|
||||
local Screen = require("ui/screen")
|
||||
local Geom = require("ui/geometry")
|
||||
local GestureRange = require("ui/gesturerange")
|
||||
local Event = require("ui/event")
|
||||
local _ = require("gettext")
|
||||
|
||||
local ReaderZooming = InputContainer:new{
|
||||
zoom = 1.0,
|
||||
-- default to nil so we can trigger ZoomModeUpdate events on start up
|
||||
zoom_mode = nil,
|
||||
@@ -262,3 +271,5 @@ function ReaderZooming:addToMainMenu(tab_item_table)
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
return ReaderZooming
|
||||
|
||||
Reference in New Issue
Block a user