diff --git a/src/extensions/cytoscape.renderer.canvas.js b/src/extensions/cytoscape.renderer.canvas.js
index <HASH>..<HASH> 100644
--- a/src/extensions/cytoscape.renderer.canvas.js
+++ b/src/extensions/cytoscape.renderer.canvas.js
@@ -174,7 +174,7 @@
 			}
 
 			// no parent node: no node to add to the drag layer
-			if (parent == node)
+			if (parent == node && inDragLayer)
 			{
 				return;
 			}
minor bug fix for touch events to remove compound nodes from the drag layer