diff --git a/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf b/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf index 895270b..3bb9ad3 100644 --- a/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf +++ b/GlitchyEngine/src/Platform/Windows/WindowsWindow.bf @@ -338,7 +338,8 @@ namespace GlitchyEngine.Platform.Windows // Horizontal scrolling case WM_MOUSEHWHEEL: { - int32 rotation = (int16)HighOrder!((int64)wParam) / WHEEL_DELTA; + // horizontal scrolling is inverted for some reason + int32 rotation = -(int16)HighOrder!((int64)wParam) / WHEEL_DELTA; var event = scope MouseScrolledEvent(rotation, 0); window._eventCallback(event);