Skip to content

Commit

Permalink
[アバターの固定]スワイプによるズーム、ドラッグによる回転を無効化。
Browse files Browse the repository at this point in the history
  • Loading branch information
otkken2 committed Aug 23, 2023
1 parent 9993b75 commit df75464
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions features/vrmViewer/viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ export class Viewer {
this._renderer.domElement
);
this._cameraControls.screenSpacePanning = true;
this._cameraControls.enableRotate = false;
this._cameraControls.enableZoom = false;
this._cameraControls.update();

window.addEventListener("resize", () => {
Expand Down

0 comments on commit df75464

Please sign in to comment.