diff --git a/lib/network/modules/SelectionHandler.js b/lib/network/modules/SelectionHandler.js index 8c5eaf37..121a2e93 100644 --- a/lib/network/modules/SelectionHandler.js +++ b/lib/network/modules/SelectionHandler.js @@ -535,8 +535,8 @@ class SelectionHandler { delete this.hoverObj.edges[edgeId]; } // if the blur remains the same and the object is undefined (mouse off) or another - // edge has been hovered, we blur the edge - else if (object === undefined || object instanceof Edge) { + // edge has been hovered, or another node has been hovered we blur the edge. + else if (object === undefined || (object instanceof Edge && object.id != edgeId) || (object instanceof Node && !object.hover)) { this.blurObject(this.hoverObj.edges[edgeId]); delete this.hoverObj.edges[edgeId]; hoverChanged = true;