From 83cbc7786f34bf8d88a07416381cac481cb66390 Mon Sep 17 00:00:00 2001 From: Uli Fahrer Date: Sat, 7 Jan 2017 14:56:56 +0100 Subject: [PATCH] Fix missing blur edge event --- lib/network/modules/SelectionHandler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;