Browse Source

(fix) Bind context to setTimeout

pull/1322/head
p-herbert 7 years ago
parent
commit
39b5c3b462
  1. 2
      Sortable.js

2
Sortable.js

@ -467,7 +467,7 @@
_on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler); _on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);
options.supportPointer && _on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler); options.supportPointer && _on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);
_this._dragStartTimer = setTimeout(dragStartFn, options.delay); _this._dragStartTimer = setTimeout(dragStartFn, options.delay).bind(_this);
} else { } else {
dragStartFn(); dragStartFn();
} }

Loading…
Cancel
Save