Browse Source

mol-canvas3d: fix condition in identify

David Sehnal 5 years ago
parent
commit
d53eb67ebf
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

@@ -39,7 +39,7 @@ export class Canvas3dInteractionHelper {
     private modifiers: ModifiersKeys = ModifiersKeys.None;
 
     private identify(isClick: boolean, t: number) {
-        if (this.lastX !== this.cX && this.lastY !== this.cY) {
+        if (this.lastX !== this.cX || this.lastY !== this.cY) {
             this.id = this.canvasIdentify(this.cX, this.cY);
             this.lastX = this.cX;
             this.lastY = this.cY;