Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Touchend (and vmouseup) are not propagated if $.event.special.tap.emitTapOnTaphold is set to false (fixes #5983) #6719

Closed
wants to merge 1 commit into from
Closed

Conversation

BendingBender
Copy link
Contributor

Currently, touchend events (and possibly others) are stopped by code handling the "no tap on taphold" feature (#5983). This means that if one wants to detect touchend after a taphold then this is virtually impossible because the propagation is being stopped via event.stopPropagation(). The intent of this call (as described by commit #49bb033) is to prevent default action upon tap on an anchor element.

This pull request fixes the problem by calling event.preventDefault() instead of event.stopPropagation(). This allows touchend (and associated vmouseup) to bubble up and at the same time prevents default action on target element.

…eup-s) if taphold is set to prevent a following tap event
@arschmitz
Copy link
Contributor

👍

gabrielschulhof pushed a commit that referenced this pull request Jun 13, 2014
(preventing vmouseup-s) if taphold is set to prevent a following tap event

This refines the modifications made in gh-5983.

(cherry picked from commit f95bec6)

Closes gh-6719
Fixes gh-7494
Re gh-5983
agcolom pushed a commit to agcolom/jquery-mobile that referenced this pull request Nov 26, 2014
(preventing vmouseup-s) if taphold is set to prevent a following tap event

This refines the modifications made in jquery-archivegh-5983.

Closes jquery-archivegh-6719
Fixes jquery-archivegh-7494
Re jquery-archivegh-5983
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants