mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-21 04:05:28 +02:00
fix scale
This commit is contained in:
@@ -1554,7 +1554,7 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
|||||||
|
|
||||||
public changeGrabbingDistance(delta: number) {
|
public changeGrabbingDistance(delta: number) {
|
||||||
if (this.grabbingCtx == null) return;
|
if (this.grabbingCtx == null) return;
|
||||||
this.grabbingCtx.distance -= delta;
|
this.grabbingCtx.distance -= cm(delta);
|
||||||
if (this.grabbingCtx.distance < cm(5)) this.grabbingCtx.distance = cm(5);
|
if (this.grabbingCtx.distance < cm(5)) this.grabbingCtx.distance = cm(5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user