benmajor / jQuery-Touch-Events

A collection of mobile event plugins for jQuery.
MIT License
699 stars 225 forks source link

Incorrect work doubletap #131

Closed yamilramilev closed 7 years ago

yamilramilev commented 7 years ago

Hi! When bind event as $(document).on('doubletap', 'SELECTOR' event doubletap working incorrectly. If first click to Block 1 and second click to Block 2, event fired, but should not.

https://jsfiddle.net/2avzofco/

benmajor commented 7 years ago

Thanks for the bug, it appears that the code is not checking the original target for double-tap elements when they have the same class. I'll push a fix for this.

benmajor commented 7 years ago

This should now be resolved with 1.0.9: https://github.com/benmajor/jQuery-Touch-Events/tree/master/src/1.0.9

Please allow some time for the CDN to detect the new release.