Canvas flung swiping

I want to make a swip function using canvas.flung
If users swipe left or right make difference action.

How works variables ? Haw can I make it ?


So, I can do it with the Dragged function and compare startX and currentX

But it's savage, how can I ask to check to if it's the touched from the user ?
Like to stop the dragged stop and use it one time ?

To travel accros 12 options.

Look at my code
Procedure is editing option with the compteur depending the compteur.


Have you found the flung event yet ?


I don't understand variables.
And I find a way working :


How to Swipe left/right and top/bottom to trigger something

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.