Skip to content
Snippets Groups Projects
Commit f47574c5 authored by Marcelo Querino Lima Alfonso's avatar Marcelo Querino Lima Alfonso
Browse files

fix interactivity bug for multiple instances of ligand-env

parent 7813a1e7
No related branches found
No related tags found
1 merge request!5Refactored code for diplaying aggregated ligand interactions
......@@ -123,6 +123,7 @@ class Visualization {
private ligHeatmapMouseoverEventHandler(e: any) {
if (this.depiction === undefined) return;
if (this.ligandIntxData === undefined) return;
const atomName = e.detail.name; // CustomEvent
/**
* This has been changed so we can highlight every Atom
......@@ -136,9 +137,10 @@ class Visualization {
if (atom.length > 0) {
this.depiction.atomMouseEnterEventHandler(atom[0], lastElement, true);
} else {
this.depiction.atomMouseLeaveEventHandler(false);
}
// else {
// this.depiction.atomMouseLeaveEventHandler(false);
// }
}
private ligHeatmapMouseoutEventHandler(_e:any) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment