ngryman / jquery.finger

:v: jQuery touch & gestures, fingers in the nose.
https://ngryman.sh/jquery.finger/
MIT License
423 stars 66 forks source link

Make sure we have an ending drag event when flick is fired. #40

Closed Phunky closed 4 years ago

Phunky commented 9 years ago

When a flick event is fired the previous drag event does not set end as true, so this fires another drag event prior to the flick to ensure we have an end drag event.

I've need this when combining flick and drag events on the same elements.

Better solution maybe to understand when the trigger on 168 wasn't actually firing for drag, but i've not had chance to really read the JS, so this is just a quick-cheap fix.

ngryman commented 9 years ago

Hey,

Thanks a lot for the PR! Would you mind adding a test case to illustrate this issue?