mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
Update engine.ts
This commit is contained in:
parent
7bcb1b1732
commit
3a97e26f80
1 changed files with 7 additions and 2 deletions
|
|
@ -450,8 +450,13 @@ export class RoomEngine extends EngineBase<{
|
|||
if (this.grabbingCtx != null) {
|
||||
this.changeGrabbingDistance(ev.delta * 0.1);
|
||||
} else {
|
||||
this.camera.fov += -ev.delta * 0.003;
|
||||
this.camera.fov = Math.max(0.25, Math.min(this.fov, this.camera.fov));
|
||||
if (this.scene.activeCamera === this.camera) {
|
||||
this.camera.fov += -ev.delta * 0.003;
|
||||
this.camera.fov = Math.max(0.25, Math.min(this.fov, this.camera.fov));
|
||||
} else if (this.scene.activeCamera === this.fixedCamera) {
|
||||
this.fixedCamera.fov += -ev.delta * 0.003;
|
||||
this.fixedCamera.fov = Math.max(0.25, Math.min(this.fov, this.fixedCamera.fov));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue