From a61ca097a79f04ac630834919b5fa186e4bfc52c Mon Sep 17 00:00:00 2001 From: Jan Sikorski <4086836+js6i@users.noreply.github.com> Date: Sat, 19 Feb 2022 18:57:41 +0100 Subject: [PATCH] Backends: OSX: Fix typo in scrolling event handler. (#5036) --- backends/imgui_impl_osx.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/imgui_impl_osx.mm b/backends/imgui_impl_osx.mm index 205d2dee8..ec0a25b8b 100644 --- a/backends/imgui_impl_osx.mm +++ b/backends/imgui_impl_osx.mm @@ -648,7 +648,7 @@ bool ImGui_ImplOSX_HandleEvent(NSEvent* event, NSView* view) wheel_dx = [event deltaX]; wheel_dy = [event deltaY]; } - if (wheel_dx != 0.0 || wheel_dx != 0.0) + if (wheel_dx != 0.0 || wheel_dy != 0.0) io.AddMouseWheelEvent((float)wheel_dx * 0.1f, (float)wheel_dy * 0.1f); return io.WantCaptureMouse;