diff --git a/src/platform/windows/Window.cpp b/src/platform/windows/Window.cpp index cb46449..b9d6195 100644 --- a/src/platform/windows/Window.cpp +++ b/src/platform/windows/Window.cpp @@ -95,7 +95,7 @@ LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) int wheel_delta = GET_WHEEL_DELTA_WPARAM(wParam); // Clamp to normalized range [+1 or -1]. // TODO: Test this and make sure sign is the same on both platforms for each direction. - wheel_delta = (wheel_delta > 0) : 1 ? -1; + wheel_delta = (wheel_delta > 0) ? 1 : -1; // TODO: Determine sign of wheel_delta for each direction, (and on linux too), and document this. window->processMouseWheel(wheel_delta); break;