mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
This commit is contained in:
parent
f822e07d76
commit
0370856d78
2 changed files with 5 additions and 5 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue