Invert emscripten scroll wheel direction (#6104)

This commit is contained in:
andzdroid
2026-08-28 18:23:47 +01:00
committed by GitHub
parent f2441a17c8
commit 3e2c0132a9

View File

@@ -1771,7 +1771,7 @@ static EM_BOOL EmscriptenMouseWheelCallback(int eventType, const EmscriptenWheel
if (eventType == EMSCRIPTEN_EVENT_WHEEL)
{
CORE.Input.Mouse.currentWheelMove.x = (float)wheelEvent->deltaX;
CORE.Input.Mouse.currentWheelMove.y = (float)wheelEvent->deltaY;
CORE.Input.Mouse.currentWheelMove.y = -(float)wheelEvent->deltaY;
}
return 1; // The event was consumed by the callback handler