Backends: GLFW: Removed mouse-wheel value scaling for Emscripten. (#4019, #6096, #6081)

This commit is contained in:
ocornut
2023-02-02 14:37:15 +01:00
parent f822e07d76
commit 0370856d78
2 changed files with 5 additions and 5 deletions

View File

@ -287,8 +287,8 @@ void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window, double xoffset, double yo
#if defined(__EMSCRIPTEN__)
// Emscripten's GLFW emulation reports grossly mis-scaled and flipped scroll events.
// The scale is still currently incorrect, see #4019 #6096 for details.
xoffset /= -120.0f;
yoffset /= -120.0f;
xoffset = -xoffset;
yoffset = -yoffset;
#endif
ImGuiIO& io = ImGui::GetIO();