Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pointer: Add pointercancel

  • Loading branch information...
commit 038a3468ea33b2a8c1e7f1ee542b5702f59e6143 1 parent fd33db3
@kborchers kborchers authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 external/pointer.js
View
12 external/pointer.js
@@ -110,4 +110,16 @@ $.event.special.pointermove = {
pointerEventHandler( event, "pointermove" );
}
};
+
+$.event.special.pointercancel = {
+ setup: function() {
+ $( this ).on( "touchcancel MSPointerCancel", $.event.special.pointermove.handler );
+ },
+ teardown: function() {
+ $( this ).off( "touchcancel MSPointerCancel", $.event.special.pointermove.handler );
+ },
+ handler: function( event ) {
+ pointerEventHandler( event, "pointercancel" );
+ }
+};
})( jQuery );
Please sign in to comment.
Something went wrong with that request. Please try again.