mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
detect touch event for more responsive UI
This commit is contained in:
parent
b5fd38f897
commit
4c5d1caa92
@ -350,6 +350,16 @@ function GestureDetector:handleNonTap(tev)
|
|||||||
return self:switchState("holdState", tev, true)
|
return self:switchState("holdState", tev, true)
|
||||||
end
|
end
|
||||||
end, deadline)
|
end, deadline)
|
||||||
|
DEBUG("handle non-tap", tev)
|
||||||
|
return {
|
||||||
|
ges = "touch",
|
||||||
|
pos = Geom:new{
|
||||||
|
x = tev.x,
|
||||||
|
y = tev.y,
|
||||||
|
w = 0, h = 0,
|
||||||
|
},
|
||||||
|
time = tev.timev,
|
||||||
|
}
|
||||||
else
|
else
|
||||||
-- it is not end of touch event, see if we need to switch to
|
-- it is not end of touch event, see if we need to switch to
|
||||||
-- other states
|
-- other states
|
||||||
|
Loading…
Reference in New Issue
Block a user