Android Swipe motions - Solved
Posted: Wed Oct 14, 2015 11:15 am
Can someone show me how to detect on an Android:
swipe right
swipe left
swipe up
swipe down
Thanks,
David
swipe right
swipe left
swipe up
swipe down
Thanks,
David
Questions and answers about the LiveCode platform.
https://forums.livecode.com/
Code: Select all
--•• swipe horizontal
local sMslMdX
on mousedown
put the mouseh into sMslMdX
end mousedown
on mouseup
get the mouseh
if it-80 > sMslMdX then
--doMyGoLeft -- or what you want
end if
if it + 80 < sMslMdX then
--doMyGoRight -- or what you want
end if
end mouseup
on mouserelease
mouseup
end mouserelease