Closed zipper closed 4 years ago
Regardless of setting "justTouchEvents" to true or false, tap (and other) event is emitted. The reason are these lines of code https://github.com/GianlucaGuarini/Tocca.js/blob/master/Tocca.js#L55-L59. In browser with support for pointer events, event names are set as Pointer* and they are listened to on lines https://github.com/GianlucaGuarini/Tocca.js/blob/master/Tocca.js#L246-L248. Therefore simple code as this results in two logs in console:
true
false
tap
Pointer*
$(document).on('tap click', function(e) { console.log(e); });
Please provide a demo showing the issue. I am closing this issue because I don't have enough info to debug it
Regardless of setting "justTouchEvents" to
true
orfalse
,tap
(and other) event is emitted. The reason are these lines of code https://github.com/GianlucaGuarini/Tocca.js/blob/master/Tocca.js#L55-L59. In browser with support for pointer events, event names are set asPointer*
and they are listened to on lines https://github.com/GianlucaGuarini/Tocca.js/blob/master/Tocca.js#L246-L248. Therefore simple code as this results in two logs in console: