From bed388f1343ed2298ffb753833af5d4c58e7fd72 Mon Sep 17 00:00:00 2001 From: Bill Date: Tue, 5 Apr 2022 20:25:24 -0400 Subject: [PATCH] Fix it again --- src/api/nitro/room/DispatchTouchEvent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/nitro/room/DispatchTouchEvent.ts b/src/api/nitro/room/DispatchTouchEvent.ts index 11f0f327..02d66e6a 100644 --- a/src/api/nitro/room/DispatchTouchEvent.ts +++ b/src/api/nitro/room/DispatchTouchEvent.ts @@ -51,8 +51,8 @@ export const DispatchTouchEvent = (event: TouchEvent, canvasId: number = 1, long y = event.changedTouches[0].clientY; } - x *= window.devicePixelRatio; - y *= window.devicePixelRatio; + x = Math.round(x / (1 / window.devicePixelRatio)); + y = Math.round(y / (1 / window.devicePixelRatio)); switch(eventType) {