Double Tap (Touch) Dynamic Event?

Is there a Dynamic Event similar to the Double Click mouse event, but for touch?

I’ve never run across a UI with mobile double tap, is that a thing? A would think long press is the alternative.

Long press could work, but I don't see that as an option either in Dynamic Events.

@kfawcett
You can do this using javascript:

var holdDuration = 750; 
var holdTimeout;
var myButton = document.getElementById('myButton');
myButton.addEventListener('touchstart', function() {
holdTimeout = setTimeout(function() {
alert('Success');
}, holdDuration);
});
myButton.addEventListener('touchend', function() {
clearTimeout(holdTimeout);
});

Remember to set draggable="false" the element you need to set the event, otherwise you'll see the "badge" with the url on it..

3 Likes