mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #3608 from node-red/filter-virtual-on-slice
Do not slice-junction link node wires
This commit is contained in:
commit
03e9e89558
@ -4959,10 +4959,11 @@ RED.view = (function() {
|
|||||||
.on("touchstart",linkTouchStart)
|
.on("touchstart",linkTouchStart)
|
||||||
.on("mousemove", function(d) {
|
.on("mousemove", function(d) {
|
||||||
if (mouse_mode === RED.state.SLICING) {
|
if (mouse_mode === RED.state.SLICING) {
|
||||||
|
|
||||||
selectedLinks.add(d)
|
selectedLinks.add(d)
|
||||||
l.classed("red-ui-flow-link-splice",true)
|
l.classed("red-ui-flow-link-splice",true)
|
||||||
redraw()
|
redraw()
|
||||||
} else if (mouse_mode === RED.state.SLICING_JUNCTION) {
|
} else if (mouse_mode === RED.state.SLICING_JUNCTION && !d.link) {
|
||||||
if (!l.classed("red-ui-flow-link-splice")) {
|
if (!l.classed("red-ui-flow-link-splice")) {
|
||||||
// Find intersection point
|
// Find intersection point
|
||||||
var lineLength = pathLine.getTotalLength();
|
var lineLength = pathLine.getTotalLength();
|
||||||
|
Loading…
Reference in New Issue
Block a user