I'm making a game using HTML5/createJS, the thing is that I must know if the user clicked on a item or used touch to tap on it because the time to answer matters.
The code is here, I enabled the touch in createJS then the click function works for both clicking and tap.
createjs.Touch.enable(stage);
item.addEventListener("click", startCounter);
startCounter = function(evt)
{
console.log(evt.isTouch)
//IF CLICK { }
//IF TAP { }
}
evt.isTouch gives me always false on my touchscreen laptop if I use the mouse or tap on the screen.
Firebase Cloud Functions: PubSub, "res.on is not a function"
TypeError: Cannot read properties of undefined (reading 'createMessageComponentCollector')
I'm firing a modal via a button with data attributesThe button sits in a row on a datatable
I'm trying to build my own chrome extension and I'm trying to add an event handler using onBeforeRequest
I need to know how can I stopPropagation of a button submit when the input text "criteria" is null or empty using jquery
This code (from a wordpress plugin I'm developing) appears to work - opening a modal, making an ajax call, retrieving some data and displaying it in the modal, using Bootstrap 3 and (native WP) jQuery 111