Skip to content

Commit

Permalink
#251: + 'mousemove' unbind
Browse files Browse the repository at this point in the history
  • Loading branch information
RubaXa committed Feb 6, 2015
1 parent c9051c2 commit c71b88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@
_on(document, 'dragover', this);

if (!supportDraggable) {
_on(document, 'mousemove', this);
this._onDragStart(tapEvt, true);
}

Expand Down Expand Up @@ -604,6 +603,7 @@
// Unbind events
_off(document, 'drop', this);
_off(document, 'dragover', this);
_off(document, 'mousemove', this._onTouchMove);

_off(el, 'dragstart', this._onDragStart);

Expand Down

0 comments on commit c71b88f

Please sign in to comment.