|
|
@ -182,7 +182,7 @@ ItemSet.prototype._create = function(){ |
|
|
|
// 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.
|
|
|
|
this.hammer = Hammer(this.body.dom.centerContainer, { |
|
|
|
prevent_default: true |
|
|
|
preventDefault: true |
|
|
|
}); |
|
|
|
|
|
|
|
// drag items when selected
|
|
|
@ -1151,6 +1151,8 @@ ItemSet.prototype._onDragStart = function (event) { |
|
|
|
* @private |
|
|
|
*/ |
|
|
|
ItemSet.prototype._onDrag = function (event) { |
|
|
|
event.preventDefault() |
|
|
|
|
|
|
|
if (this.touchParams.itemProps) { |
|
|
|
var me = this; |
|
|
|
var snap = this.body.util.snap || null; |
|
|
@ -1235,6 +1237,8 @@ ItemSet.prototype._moveToGroup = function(item, groupId) { |
|
|
|
* @private |
|
|
|
*/ |
|
|
|
ItemSet.prototype._onDragEnd = function (event) { |
|
|
|
event.preventDefault() |
|
|
|
|
|
|
|
if (this.touchParams.itemProps) { |
|
|
|
// prepare a change set for the changed items
|
|
|
|
var changes = [], |
|
|
|