Skip to content

Commit

Permalink
Merge pull request render-examples#21 from aivy-tokyo/fix/disable_dra…
Browse files Browse the repository at this point in the history
…gging_avatar

[アバターの固定]スワイプによるズーム、ドラッグによる回転を無効化。
  • Loading branch information
Nobuhiko Futagami authored Aug 25, 2023
2 parents 9993b75 + df75464 commit 568b06a
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 568b06a

Please sign in to comment.