This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
tap-event needs two clicks to be fired on mobile #8574
Open
Description
jQuery-mobile needs two clicks on an element to fire the "tap"-event. This only occures on mobile devices.
$(".element").on("tap", function(e){
e.preventDefault();
e.stopPropagation();
alert("Tap");
});
This code only fires after the second click on the ".element"-element. The first click is not registered by the event. Also, after the event gets fired at the second click, it will loop through it two to three times.
I use the new jquery-mobile 1.5.0-alpha version and the newest jquery version.
Taphold works like expected.