Skip to content

Commit

Permalink
handle cancel, kinda; Ref #18
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed May 3, 2013
1 parent 770e76d commit 7711057
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions draggabilly.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,13 @@ Draggabilly.prototype.dragEnd = function( event, pointer ) {

};

// ----- cancel event ----- //

// coerce to end event
Draggabilly.prototype.ontouchcancel = function( event ) {
this.dragEnd( event );
};

// -------------------------- animation -------------------------- //

Draggabilly.prototype.animate = function() {
Expand Down

0 comments on commit 7711057

Please sign in to comment.