Skip to content

Instantly share code, notes, and snippets.

@exce11ent
Created August 5, 2013 09:19
Show Gist options
  • Save exce11ent/6154558 to your computer and use it in GitHub Desktop.
Save exce11ent/6154558 to your computer and use it in GitHub Desktop.
// move item to clip marker
// save current touch.x as N
// if continue:
// calculate displacement from N point
// if displacement > threshold
// move item.center to current touch point;
// reset N;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment