Browse Source

Fix missing blur edge event

fix2580
Uli Fahrer 7 years ago
committed by Uli Fahrer
parent
commit
83cbc7786f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/network/modules/SelectionHandler.js

+ 2
- 2
lib/network/modules/SelectionHandler.js View File

@ -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;

Loading…
Cancel
Save