Skip to content
Snippets Groups Projects
Commit d53eb67e authored by David Sehnal's avatar David Sehnal
Browse files

mol-canvas3d: fix condition in identify

parent a9cdf025
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment