Permalink
Browse files

Pointer: Add pointercancel

  • Loading branch information...
1 parent fd33db3 commit 038a3468ea33b2a8c1e7f1ee542b5702f59e6143 @kborchers kborchers committed Apr 11, 2013
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 );

0 comments on commit 038a346

Please sign in to comment.