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

MockInteractions.track passes incorrect delta values #59

Open
txsmith opened this issue Jun 27, 2016 · 0 comments
Open

MockInteractions.track passes incorrect delta values #59

txsmith opened this issue Jun 27, 2016 · 0 comments

Comments

@txsmith
Copy link

txsmith commented Jun 27, 2016

When using MockInteractions.track, the track events that get fired contains wrong values for dx and dy.

Expected outcome

For example, calling MockInteractions.track(elem, 50, 0, 3), the track event is fired four times, one for each step and one for the end event. I expect all delta values in all events to be positive numbers since the direction of tracking is to the right.

Actual outcome

The first three times this event fires, the dx will be negative. The end event is the only event that has the correct deltas.

Live Demo

https://jsbin.com/gawecedigu/edit?html,output

Steps to reproduce

  1. Create an element that listens to track.
  2. Call MockInteractions.track(element, <any x>, <any y>).
  3. Observe dy and dx values received by the event handler.

Browsers Affected

All

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

Successfully merging a pull request may close this issue.

1 participant