Skip to content

Commit

Permalink
Backends: OSX: Fix typo in scrolling event handler. (#5036)
Browse files Browse the repository at this point in the history
  • Loading branch information
js6i committed Feb 19, 2022
1 parent dca527b commit a61ca09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/imgui_impl_osx.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a61ca09

Please sign in to comment.