mirror of
https://github.com/raysan5/raylib.git
synced 2026-08-29 10:31:33 +00:00
Invert emscripten scroll wheel direction (#6104)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user