Explorar o código

mol-canvas3d: fix condition in identify

David Sehnal %!s(int64=5) %!d(string=hai) anos
pai
achega
d53eb67ebf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;