Browse Source

Fix blur edge for dense networks (#2124)

codeClimate
Uli Fahrer 8 years ago
committed by Alexander Wunschik
parent
commit
b136380655
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      lib/network/modules/SelectionHandler.js

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

@ -534,8 +534,9 @@ class SelectionHandler {
this.hoverObj.edges[edgeId].hover = false;
delete this.hoverObj.edges[edgeId];
}
// if the blur remains the same and the object is undefined (mouse off), we blur the edge
else if (object === undefined) {
// 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) {
this.blurObject(this.hoverObj.edges[edgeId]);
delete this.hoverObj.edges[edgeId];
hoverChanged = true;

Loading…
Cancel
Save