src/video/emscripten/SDL_emscriptenevents.c
changeset 11300 68a80d7afec3
parent 11067 f4d12a22446e
child 11811 5d94cb6b24d3
     1.1 --- a/src/video/emscripten/SDL_emscriptenevents.c	Mon Aug 14 20:45:14 2017 -0700
     1.2 +++ b/src/video/emscripten/SDL_emscriptenevents.c	Mon Aug 14 21:28:04 2017 -0700
     1.3 @@ -400,7 +400,7 @@
     1.4  Emscripten_HandleWheel(int eventType, const EmscriptenWheelEvent *wheelEvent, void *userData)
     1.5  {
     1.6      SDL_WindowData *window_data = userData;
     1.7 -    SDL_SendMouseWheel(window_data->window, 0, wheelEvent->deltaX, -wheelEvent->deltaY, SDL_MOUSEWHEEL_NORMAL);
     1.8 +    SDL_SendMouseWheel(window_data->window, 0, (float)wheelEvent->deltaX, (float)-wheelEvent->deltaY, SDL_MOUSEWHEEL_NORMAL);
     1.9      return SDL_GetEventState(SDL_MOUSEWHEEL) == SDL_ENABLE;
    1.10  }
    1.11