Skip to content

Commit 9fdf07d

Browse files
tanquetavkamilkp
authored andcommitted
touchcancel binded event was not correctly unbind (#104)
1 parent 1cf628a commit 9fdf07d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/angular-sortable-view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@
456456
html.addClass('sv-sorting-in-progress');
457457
html.on('mousemove touchmove', onMousemove).on('mouseup touchend touchcancel', function mouseup(e){
458458
html.off('mousemove touchmove', onMousemove);
459-
html.off('mouseup touchend', mouseup);
459+
html.off('mouseup touchend touchcancel', mouseup);
460460
html.removeClass('sv-sorting-in-progress');
461461
if(moveExecuted){
462462
$controllers[0].$drop($scope.$index, opts);
@@ -622,4 +622,4 @@
622622
};
623623
}
624624

625-
})(window, window.angular);
625+
})(window, window.angular);

src/angular-sortable-view.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)