Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
mimeartist

Delay the drag for a few pixels

Recommended Posts

I want to delay a drag so it doesn't get recognised for at least 5 pixels for example, is there a threshold or anything like that I can set? Reason being I'm mixing some swipeLeft with draggable, and i get a very tiny part of the draggable triggering when I swipeLeft... it might not be ideal in the final product, but I want to at least try it

Link to comment
Share on other sites

Sure, you should be able to set "minimumMovement" to whatever you want (5 in this case). 

Draggable.create("#yourID", {
  type:"x,y",
  minimumMovement:5
});

Does that help?

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×