-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More sophisticated events for move/drag #107
Comments
One thing to think about is that I now calculate the velocity over the last 100 milliseconds for more precision. Not sure how to expose that onto an event. Maybe some property on the draggable? https://github.com/koenbok/Framer/blob/master/framer/LayerDraggable.coffee#L56 |
Here's some inspiration: http://hammerjs.github.io/api/#event-object |
^ From that list I typically use:
|
It's basically just a matter of calculating those and setting them on event here: |
I'd add distance, too. |
Oops! Missed Distance... yes that too. Added it above. |
i need direction, drag x and drag y |
How do I simulate press and hold? And then press+hold+drag? |
We should also sanitize events for mobile and desktop. https://www.facebook.com/groups/framerjs/permalink/561406183986457/ |
https://www.facebook.com/groups/framerjs/permalink/547915885335487/
The text was updated successfully, but these errors were encountered: