taphold

taphold eventversion added: 1.0

jQuery( ".selector" ).on( "taphold", function( event ) { ... } )

The jQuery Mobile taphold event triggers after a sustained, complete touch event (also known as a long press).

$.event.special.tap.tapholdThreshold (default: 750) - This value dictates how long the user must hold their tap before the taphold event is fired on the target element.

$.event.special.tap.emitTapOnTaphold (default: true) - This value dictates whether a tap event will be emitted along with the taphold event.

This plugin extends jQuery's built-in method. If jQuery Mobile is not loaded, calling the .taphold() method may not fail directly, as the method still exists. However, the expected behavior will not occur.