Merge pull request #676 from Moeriki/master

Fix for issue #640
This commit is contained in:
Eric Rowell
2013-11-27 14:22:41 -08:00

View File

@@ -198,8 +198,13 @@
}; };
Kinetic.Node.prototype._dragCleanup = function() { Kinetic.Node.prototype._dragCleanup = function() {
if (this.getClassName() === 'Stage') {
this.off('contentMousedown.kinetic');
this.off('contentTouchstart.kinetic');
} else {
this.off('mousedown.kinetic'); this.off('mousedown.kinetic');
this.off('touchstart.kinetic'); this.off('touchstart.kinetic');
}
}; };
Kinetic.Factory.addGetterSetter(Kinetic.Node, 'dragBoundFunc'); Kinetic.Factory.addGetterSetter(Kinetic.Node, 'dragBoundFunc');