Fix for issue #640

This commit is contained in:
Dieter Luypaert
2013-11-06 11:29:45 +01:00
parent 64f465c55e
commit 9d31c9aa54

View File

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