diff --git a/src/platforms/rcore_web.c b/src/platforms/rcore_web.c index a7f424383..d039bffe5 100644 --- a/src/platforms/rcore_web.c +++ b/src/platforms/rcore_web.c @@ -1635,6 +1635,11 @@ static EM_BOOL EmscriptenTouchCallback(int eventType, const EmscriptenTouchEvent else if (eventType == EMSCRIPTEN_EVENT_TOUCHEND) CORE.Input.Touch.currentTouchState[i] = 0; } + if (CORE.Input.Touch.pointCount == 1) { + CORE.Input.Mouse.currentPosition.x = CORE.Input.Touch.position[0].x; + CORE.Input.Mouse.currentPosition.y = CORE.Input.Touch.position[0].y; + } + #if defined(SUPPORT_GESTURES_SYSTEM) GestureEvent gestureEvent = {0};