mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Make luacheck >= 0.26 happy (#9174)
Re: https://github.com/koreader/koreader-base/pull/1487
This commit is contained in:
@@ -1095,9 +1095,9 @@ end
|
||||
Get link from position in screen page.
|
||||
]]--
|
||||
function KoptInterface:getLinkFromPosition(doc, pageno, pos)
|
||||
local function _inside_box(_pos, box)
|
||||
if _pos then
|
||||
local x, y = _pos.x, _pos.y
|
||||
local function _inside_box(coords, box)
|
||||
if coords then
|
||||
local x, y = coords.x, coords.y
|
||||
if box.x <= x and box.y <= y
|
||||
and box.x + box.w >= x
|
||||
and box.y + box.h >= y then
|
||||
|
||||
Reference in New Issue
Block a user