From 9d31c9aa54f1db3cb5140dabe4529696ccba2a1e Mon Sep 17 00:00:00 2001 From: Dieter Luypaert Date: Wed, 6 Nov 2013 11:29:45 +0100 Subject: [PATCH] Fix for issue #640 --- src/DragAndDrop.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/DragAndDrop.js b/src/DragAndDrop.js index 95240cfb..f9415d93 100644 --- a/src/DragAndDrop.js +++ b/src/DragAndDrop.js @@ -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');