drag and drop logic now works correctly on mobile when both the stage is draggable and a shape

This commit is contained in:
Eric Rowell
2013-04-06 22:29:35 -07:00
parent 4610918f07
commit 9fd5df4d79
2 changed files with 3 additions and 8 deletions

View File

@@ -462,11 +462,9 @@
},
_touchstart: function(evt) {
this._setPointerPosition(evt);
var dd = Kinetic.DD,
go = Kinetic.Global,
var go = Kinetic.Global,
obj = this.getIntersection(this.getPointerPosition()),
shape;
evt.preventDefault();
@@ -477,8 +475,8 @@
shape._handleEvent(TOUCHSTART, evt);
}
// init stage drag and drop
if(dd && !go.isDragging() && this.isDraggable()) {
//init stage drag and drop
if(this.isDraggable() && !go.isDragReady()) {
this.startDrag(evt);
}
},