Skip to content
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

Closed
kylepaulsen opened this issue Dec 18, 2013 · 5 comments
Closed

Is there a deltaX / deltaY of last event fire? #414

kylepaulsen opened this issue Dec 18, 2013 · 5 comments

Comments

@kylepaulsen
Copy link

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?

@dougflip
Copy link

👍 I am looking for the same values.

@jtangelder
Copy link
Member

You can keep track of the x/y for each event and do some simple math to get the distance per event

@dougflip
Copy link

Yep, that is what I am doing now - just wanted to make sure Hammer wasn't already providing this.

@jtangelder jtangelder reopened this Jan 17, 2014
@pr1ntr
Copy link

pr1ntr commented Oct 7, 2014

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.

@arschmitz
Copy link
Contributor

Closing this as being tracked in #806

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants