singhn9 commited on
Commit
99ebb1a
·
verified ·
1 Parent(s): cf215c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -500,15 +500,16 @@ function draw() {
500
  drawLoopPathsFor(name); // draw overlay highlights for loops involving this node
501
  }
502
 
503
- nodeCircleGroup.on("click", function(e,d){
504
  selectNode(d);
505
- if (e && e.stopPropagation) e.stopPropagation();
506
  });
507
- labelGroup.on("click", function(e,d){
508
  selectNode(d);
509
- if (e && e.stopPropagation) e.stopPropagation();
510
  });
511
 
 
512
  document.getElementById("arc-reset").onclick = resetOpacity;
513
  svg.on("click", function(evt){
514
  // Only reset when clicking empty background, not circles, not labels, not paths
 
500
  drawLoopPathsFor(name); // draw overlay highlights for loops involving this node
501
  }
502
 
503
+ nodeCircleGroup.on("click", function(event, d){
504
  selectNode(d);
505
+ event.stopPropagation();
506
  });
507
+ labelGroup.on("click", function(event, d){
508
  selectNode(d);
509
+ event.stopPropagation();
510
  });
511
 
512
+
513
  document.getElementById("arc-reset").onclick = resetOpacity;
514
  svg.on("click", function(evt){
515
  // Only reset when clicking empty background, not circles, not labels, not paths