|
|
@ -269,6 +269,10 @@ |
|
|
|
if (!target) { |
|
|
|
if (!target) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (options.handle && !_closest(originalTarget, options.handle, el)) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// get the index of the dragged element within its parent
|
|
|
|
// get the index of the dragged element within its parent
|
|
|
|
oldIndex = _index(target); |
|
|
|
oldIndex = _index(target); |
|
|
@ -297,12 +301,6 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (options.handle && !_closest(originalTarget, options.handle, el)) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Prepare `dragstart`
|
|
|
|
// Prepare `dragstart`
|
|
|
|
this._prepareDragStart(evt, touch, target); |
|
|
|
this._prepareDragStart(evt, touch, target); |
|
|
|
}, |
|
|
|
}, |
|
|
|