Skip to content

drag event without move and zero deltas #28

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

Closed
wants to merge 7 commits into from
Closed

drag event without move and zero deltas #28

wants to merge 7 commits into from

Conversation

mappetz
Copy link

@mappetz mappetz 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.

mappetz and others added 7 commits September 12, 2014 09:10
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
@jzaefferer
Copy link
Member

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

@timmywil timmywil closed this Mar 16, 2021
@timmywil timmywil deleted the branch jquery:master March 16, 2021 16:43
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 this pull request may close these issues.

3 participants