diff --git a/src/app/babylon/model/info/mark/model-info-mark.ts b/src/app/babylon/model/info/mark/model-info-mark.ts index 2f4eaae..297a7af 100644 --- a/src/app/babylon/model/info/mark/model-info-mark.ts +++ b/src/app/babylon/model/info/mark/model-info-mark.ts @@ -145,9 +145,12 @@ export class ModelInfo_mark extends ModelInfo { this.uiFollowHead.thickness = 0; this.uiFollowHead.adaptWidthToChildren = true; this.uiFollowHead.linkWithMesh(this.headMesh); - this.uiFollowHead.onPointerClickObservable.add(() => { + this.uiFollowHead.onPointerClickObservable.add((info: Vector2WithInfo) => { MarkWindow.instance.selectMarkDataFrom3d(instance, true); - instance.lookAt(); + //中间点击时才发生聚焦 + if (info.buttonIndex == 1) { + instance.lookAt(); + } }); this.uiFollowHeadBg = new Rectangle('bg');