소스 검색

mol-canvas3d: fix condition in identify

David Sehnal 5 년 전
부모
커밋
d53eb67ebf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;