diff --git a/src/extensions/jquery.cytoscapeweb.renderer.svg.js b/src/extensions/jquery.cytoscapeweb.renderer.svg.js
index <HASH>..<HASH> 100644
--- a/src/extensions/jquery.cytoscapeweb.renderer.svg.js
+++ b/src/extensions/jquery.cytoscapeweb.renderer.svg.js
@@ -1304,6 +1304,14 @@
 				originY = mousedownEvent.pageY;
 			}
 			
+			var elements;
+				
+			if( element.selected() ){
+				elements = self.selectedElements.add(element).filter(":grabbable");
+			} else {
+				elements = element.collection();
+			}
+
 			var justStartedDragging = true;
 			var dragHandler = function(dragEvent){
 				
@@ -1329,14 +1337,6 @@
 				originX = dragX;
 				originY = dragY;
 				
-				var elements;
-				
-				if( element.selected() ){
-					elements = self.selectedElements.add(element);
-				} else {
-					elements = element.collection();
-				}
-				
 				elements.each(function(i, e){
 					e.element()._private.position.x += dx;
 					e.element()._private.position.y += dy;
Ungrabbable nodes aren't moved when a grabbable node is grabbed and moved