Skip to content

Commit

Permalink
Merge pull request #459 from sp-kilobug/sp-kilobug-patch-3
Browse files Browse the repository at this point in the history
improves the fallback mode fluidity
  • Loading branch information
RubaXa committed Jul 18, 2015
2 parents 960d7da + 9e3e0a8 commit 9660e8e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,12 @@

_emulateDragOver: function () {
if (touchEvt) {
if (this._lastX===touchEvt.clientX && this._lastY===touchEvt.clientY ) {
return;
}
this._lastX=touchEvt.clientX;
this._lastY=touchEvt.clientY;

_css(ghostEl, 'display', 'none');

var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY),
Expand Down Expand Up @@ -514,7 +520,7 @@
_on(document, 'mouseup', this._onDrop);
}

this._loopId = setInterval(this._emulateDragOver, 150);
this._loopId = setInterval(this._emulateDragOver, 50);
}
else {
if (dataTransfer) {
Expand Down

0 comments on commit 9660e8e

Please sign in to comment.