Browse Source

fix Canvas3dInteractionHelper.leave

David Sehnal 4 years ago
parent
commit
7a3eb8d03f
1 changed files with 1 additions and 1 deletions
  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() {
         this.inside = false;
-        if (Representation.Loci.isEmpty(this.prevLoci)) {
+        if (!Representation.Loci.isEmpty(this.prevLoci)) {
             this.prevLoci = Representation.Loci.Empty;
             this.events.hover.next({ current: this.prevLoci, buttons: this.buttons, button: this.button, modifiers: this.modifiers });
         }