Преглед на файлове

fix Canvas3dInteractionHelper.leave

David Sehnal преди 4 години
родител
ревизия
7a3eb8d03f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 });
         }