Skip to content
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
@MarcelKie

Description

@MarcelKie

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions