mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Apply scaleFactor when calculating junction slice positions
This commit is contained in:
		| @@ -5174,8 +5174,8 @@ RED.view = (function() { | ||||
|                                 var delta = Infinity; | ||||
|                                 for (var i = 0; i < lineLength; i++) { | ||||
|                                     var linePos = pathLine.getPointAtLength(i); | ||||
|                                     var posDeltaX = Math.abs(linePos.x-d3.event.offsetX) | ||||
|                                     var posDeltaY = Math.abs(linePos.y-d3.event.offsetY) | ||||
|                                     var posDeltaX = Math.abs(linePos.x-(d3.event.offsetX / scaleFactor)) | ||||
|                                     var posDeltaY = Math.abs(linePos.y-(d3.event.offsetY / scaleFactor)) | ||||
|                                     var posDelta = posDeltaX*posDeltaX + posDeltaY*posDeltaY | ||||
|                                     if (posDelta < delta) { | ||||
|                                         pos = linePos | ||||
|   | ||||
		Reference in New Issue
	
	Block a user