Jump to content

swipe gesture in pixijs


tywang2006
 Share

Recommended Posts

I don't normally consider the angle but sometimes it's also useful to measure velocity and duration of the touch. Depends what you want to do with the swipe. It's common to want to do things like determine whether it is left to right or right to left, or up to down or down to up, which you can also do by comparing the start and end points.

Link to comment
Share on other sites

4 hours ago, alex_h said:

I don't normally consider the angle but sometimes it's also useful to measure velocity and duration of the touch. Depends what you want to do with the swipe. It's common to want to do things like determine whether it is left to right or right to left, or up to down or down to up, which you can also do by comparing the start and end points.

I agree with you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...