Fixed bug caused by disabling text selection (test your code first!)
This commit is contained in:
		@@ -71,6 +71,10 @@ $("#workspace").on("mousedown", ".block>.main,.block>.inputs", function(event){
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$("#workspace").on("mousedown", ".block>.main input,.block>.main textarea", function(event){ //allow for clicking a textbox
 | 
				
			||||||
 | 
					  event.stopPropagation();
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$("#workspace").on("mouseup", ".block>.main,.block>.inputs", function(event){
 | 
					$("#workspace").on("mouseup", ".block>.main,.block>.inputs", function(event){
 | 
				
			||||||
  diagram.state.filter((block)=>(block.id == $(this).parent().attr("id")))[0].dragging = false;
 | 
					  diagram.state.filter((block)=>(block.id == $(this).parent().attr("id")))[0].dragging = false;
 | 
				
			||||||
  offX = false;
 | 
					  offX = false;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user