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) {