mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 09:02:06 +00:00
Fix: macOS 2 finger tap moves moves slider instead of opening context menu (#12375)
This commit is contained in:
@@ -1470,10 +1470,11 @@ void IMSlider::on_mouse_wheel(wxMouseEvent& evt) {
|
||||
|
||||
ImGuiWrapper& imgui = *wxGetApp().imgui();
|
||||
|
||||
float wheel = 0.0f;
|
||||
wheel = evt.GetWheelRotation() > 0 ? 1.0f : -1.0f;
|
||||
float wheel = evt.GetWheelRotation();
|
||||
// mac trackpads trigger this event with value 0 when right-clicking with two fingers
|
||||
if (wheel == 0.0f)
|
||||
return;
|
||||
wheel = wheel > 0 ? 1.0f : -1.0f;
|
||||
|
||||
#ifdef __WXOSX__
|
||||
if (wxGetKeyState(WXK_SHIFT)) {
|
||||
|
||||
Reference in New Issue
Block a user