-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Is there a deltaX / deltaY of last event fire? #414
Comments
👍 I am looking for the same values. |
You can keep track of the x/y for each event and do some simple math to get the distance per event |
Yep, that is what I am doing now - just wanted to make sure Hammer wasn't already providing this. |
I don't see why Hammer wouldn't provide this out of the box. How do you manage to get the total delta of the entire drag? Should just expose those values imo. |
Closing this as being tracked in #806 |
I noticed that when using the drag event, the deltaX and deltaY properties are the total distance you have dragged so far. Is there a delta of the number of pixels moved since the last event fire? How do I get this?
The text was updated successfully, but these errors were encountered: