mudcube / Event.js

:hand: Multi-touch, gestures, and other events—click, dblclick, dbltap, tap, longpress, drag, swipe, pinch, rotate, shake. For pointer events, each listener can handle anywhere from 1 to 12 fingers at a time, or more, depending on the device. Includes MetaKey tracking (CMD, CTRL) to support native key-commands in various platforms.
MIT License
368 stars 68 forks source link

eventsjs dbltap event fires on single tap #17

Open dhara-02 opened 9 years ago

dhara-02 commented 9 years ago

The event should get fired only when there is double click or double tap. But when we do single tap the event is getting fired. Tested on chrome browser both in mobile and touch supported desktop. This happens when we do touch , mouse functionality is working ok.

$(function() { eventjs.add(someElement, "dbltap" , doubleTapEvent , false); });

function doubleTapEvent(event, self){ console.log("doubleTappped"); //This gets logged in single tap also }

mardon86 commented 8 years ago

Thats happening in my code too