mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix #1150 by adding FOLLOW_LINK_TIMEOUT variable
This commit is contained in:
@@ -58,6 +58,11 @@ DCREREADER_TWO_PAGE_THRESHOLD = 7
|
||||
-- page overlap pixels
|
||||
DOVERLAPPIXELS = 30
|
||||
|
||||
-- timeout to show link rectangle around links
|
||||
-- default to 0.5 second
|
||||
-- set to 0 to disable showing rectangle and follow link immediately
|
||||
FOLLOW_LINK_TIMEOUT = 0.5
|
||||
|
||||
-- customizable tap zones(rectangles)
|
||||
-- x: x coordinate of top left corner in proportion of screen width
|
||||
-- y: y coordinate of top left corner in proportion of screen height
|
||||
|
||||
@@ -90,7 +90,7 @@ function ReaderLink:onTap(arg, ges)
|
||||
if sbox then
|
||||
UIManager:show(LinkBox:new{
|
||||
box = sbox,
|
||||
timeout = 0.5,
|
||||
timeout = FOLLOW_LINK_TIMEOUT,
|
||||
callback = function() self:onGotoLink(link) end
|
||||
})
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user