|
|
@ -1235,6 +1235,7 @@ ItemSet.prototype._onDragStart = function (event) { |
|
|
|
var dragLeftItem = this.touchParams.dragLeftItem; |
|
|
|
var dragRightItem = this.touchParams.dragRightItem; |
|
|
|
this.touchParams.itemIsDragging = true; |
|
|
|
this.touchParams.selectedItem = item; |
|
|
|
|
|
|
|
if (dragLeftItem) { |
|
|
|
props = { |
|
|
@ -1257,8 +1258,6 @@ ItemSet.prototype._onDragStart = function (event) { |
|
|
|
this.touchParams.itemProps = [props]; |
|
|
|
} |
|
|
|
else { |
|
|
|
this.touchParams.selectedItem = item; |
|
|
|
|
|
|
|
var baseGroupIndex = this._getGroupIndex(item.data.group); |
|
|
|
|
|
|
|
var itemsToDrag = (this.options.itemsAlwaysDraggable && !item.selected) ? [item.id] : this.getSelection(); |
|
|
@ -1323,7 +1322,8 @@ ItemSet.prototype._onDragStartAddItem = function (event) { |
|
|
|
newItem.id = id; // TODO: not so nice setting id afterwards
|
|
|
|
newItem.data = this._cloneItemData(itemData); |
|
|
|
this._addItem(newItem); |
|
|
|
|
|
|
|
this.touchParams.selectedItem = newItem; |
|
|
|
|
|
|
|
var props = { |
|
|
|
item: newItem, |
|
|
|
initialX: event.center.x, |
|
|
|