Browse Source

Backends: OSX: Fix typo in scrolling event handler. (#5036)

pull/5037/head
Jan Sikorski 3 years ago
committed by GitHub
parent
commit
a61ca097a7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      backends/imgui_impl_osx.mm

2
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;

Loading…
Cancel
Save