public void mouseDragged(){	
	  
	  if (this.editModeButton.toggle==1){
		  graph.updateNodePosition(mouseX/scaleFactor, mouseY/scaleFactor);
		  return;
	  }	  
	  graph.isNodeDragged();//Just check if the node should be dragged around or de-selected
	  if (!graph.inGlobalView){
		  this.globalViewButton.toggle = 0;
	  }
  }