mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-02-17 01:12:37 +01:00
Fix touch event positioning
This commit is contained in:
parent
366ac6cf4c
commit
629bed5056
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user