|
@ -182,7 +182,7 @@ ItemSet.prototype._create = function(){ |
|
|
// of the center container is larger than of the ItemSet, so we
|
|
|
// of the center container is larger than of the ItemSet, so we
|
|
|
// can click in the empty area to create a new item or deselect an item.
|
|
|
// can click in the empty area to create a new item or deselect an item.
|
|
|
this.hammer = Hammer(this.body.dom.centerContainer, { |
|
|
this.hammer = Hammer(this.body.dom.centerContainer, { |
|
|
prevent_default: true |
|
|
|
|
|
|
|
|
preventDefault: true |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
// drag items when selected
|
|
|
// drag items when selected
|
|
@ -1151,6 +1151,8 @@ ItemSet.prototype._onDragStart = function (event) { |
|
|
* @private |
|
|
* @private |
|
|
*/ |
|
|
*/ |
|
|
ItemSet.prototype._onDrag = function (event) { |
|
|
ItemSet.prototype._onDrag = function (event) { |
|
|
|
|
|
event.preventDefault() |
|
|
|
|
|
|
|
|
if (this.touchParams.itemProps) { |
|
|
if (this.touchParams.itemProps) { |
|
|
var me = this; |
|
|
var me = this; |
|
|
var snap = this.body.util.snap || null; |
|
|
var snap = this.body.util.snap || null; |
|
@ -1235,6 +1237,8 @@ ItemSet.prototype._moveToGroup = function(item, groupId) { |
|
|
* @private |
|
|
* @private |
|
|
*/ |
|
|
*/ |
|
|
ItemSet.prototype._onDragEnd = function (event) { |
|
|
ItemSet.prototype._onDragEnd = function (event) { |
|
|
|
|
|
event.preventDefault() |
|
|
|
|
|
|
|
|
if (this.touchParams.itemProps) { |
|
|
if (this.touchParams.itemProps) { |
|
|
// prepare a change set for the changed items
|
|
|
// prepare a change set for the changed items
|
|
|
var changes = [], |
|
|
var changes = [], |
|
|