mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-30 00:50:50 +01:00
Fix it again
This commit is contained in:
parent
629bed5056
commit
bed388f134
@ -51,8 +51,8 @@ export const DispatchTouchEvent = (event: TouchEvent, canvasId: number = 1, long
|
|||||||
y = event.changedTouches[0].clientY;
|
y = event.changedTouches[0].clientY;
|
||||||
}
|
}
|
||||||
|
|
||||||
x *= window.devicePixelRatio;
|
x = Math.round(x / (1 / window.devicePixelRatio));
|
||||||
y *= window.devicePixelRatio;
|
y = Math.round(y / (1 / window.devicePixelRatio));
|
||||||
|
|
||||||
switch(eventType)
|
switch(eventType)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user