Compare commits

...

2 Commits

  1. 7
      src/app/babylon/model/info/mark/model-info-mark.ts

7
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');

Loading…
Cancel
Save