fix #1150 by adding FOLLOW_LINK_TIMEOUT variable

pull/1328/head
chrox 10 years ago
parent ef6235e4ae
commit b767394fc2

@ -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

Loading…
Cancel
Save