mirror of
https://github.com/koreader/koreader.git
synced 2025-12-24 12:14:05 +01:00
feat: add logger module & rewrite kobo suspend script in lua
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
local InputContainer = require("ui/widget/container/inputcontainer")
|
||||
local Device = require("device")
|
||||
local DEBUG = require("dbg")
|
||||
local _ = require("gettext")
|
||||
|
||||
local ReaderPanning = InputContainer:new{
|
||||
@@ -37,9 +36,8 @@ function ReaderPanning:onSetDimensions(dimensions)
|
||||
self.dimen = dimensions
|
||||
end
|
||||
|
||||
function ReaderPanning:onPanning(args, key)
|
||||
function ReaderPanning:onPanning(args, _)
|
||||
local dx, dy = unpack(args)
|
||||
DEBUG("key =", key)
|
||||
-- for now, bounds checking/calculation is done in the view
|
||||
self.view:PanningUpdate(
|
||||
dx * self.panning_steps.normal * self.dimen.w / 100,
|
||||
|
||||
Reference in New Issue
Block a user