Fix touch event positioning

This commit is contained in:
Bill 2022-04-05 20:11:05 -04:00
parent 366ac6cf4c
commit 629bed5056

View File

@ -51,6 +51,9 @@ export const DispatchTouchEvent = (event: TouchEvent, canvasId: number = 1, long
y = event.changedTouches[0].clientY;
}
x *= window.devicePixelRatio;
y *= window.devicePixelRatio;
switch(eventType)
{
case MouseEventType.MOUSE_CLICK: