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

drag event without move and zero deltas #28

Open
wants to merge 7 commits into
base: master
from

Conversation

@mpetozzi
Copy link

@mpetozzi mpetozzi commented Sep 12, 2014

I've added this case for the simulation of the drag event:
element.simulate("drag", { moves: 0, dx: 0, dy: 0 });
Using Snap SVG I need to simulate in tests a drag without moves. It will be fired only mouseup and mousedown.
Only when dx and dy equal zero I will not assign the default of 3 moves. I have also increased the test of the drag including expectations for the mouseup and mousedown.

mpetozzi and others added 7 commits Sep 12, 2014
given moves=0, dx=0 and dy=0
there will be no move events fired
assigned a default of 3 moves only in the case
-move is not a number (null, undefined, etc)
or
-move=0 and dx=0 and dy=0
mpetozzi
@jzaefferer
Copy link
Member

@jzaefferer jzaefferer commented Feb 12, 2015

Thank you for the contribution. As you've probably guessed already, this project isn't well maintained. I've added some details about that here: https://github.com/jquery/jquery-simulate#project-status

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

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.