Procházet zdrojové kódy

fix Canvas3dInteractionHelper.leave

David Sehnal před 4 roky
rodič
revize
7a3eb8d03f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/mol-canvas3d/helper/interaction-events.ts

+ 1 - 1
src/mol-canvas3d/helper/interaction-events.ts

@@ -93,7 +93,7 @@ export class Canvas3dInteractionHelper {
 
 
     private leave() {
     private leave() {
         this.inside = false;
         this.inside = false;
-        if (Representation.Loci.isEmpty(this.prevLoci)) {
+        if (!Representation.Loci.isEmpty(this.prevLoci)) {
             this.prevLoci = Representation.Loci.Empty;
             this.prevLoci = Representation.Loci.Empty;
             this.events.hover.next({ current: this.prevLoci, buttons: this.buttons, button: this.button, modifiers: this.modifiers });
             this.events.hover.next({ current: this.prevLoci, buttons: this.buttons, button: this.button, modifiers: this.modifiers });
         }
         }