jQuery.event.special.pointerstart
Cross-platform event raised when pointing/touching has begun. Supported on Android, iOS, Windows Phone, and desktop browsers (via mouse events).
Bubbles and can be delegated against.
pointerstart
is a low-level event consumed by higher-level gesture events. If attempting handle a user's tap, it's almost always better to handle the explicit tap gesture event in the same way that it's typically better to handle the click
event instead of mousedown
on the desktop.
Usage
$(element).on('pointerstart', function(e){
// handle event...
});
Data on the event
originalEvent
: Native event object which was re-interpreted as apointerstart
. (mousedown
,touchstart
, ormspointerstart
)pointers
: array of Pointer objects, each withpageX
andpageY
properties