From d604cc96978a8dfcec980e61184f5c5e51bd0f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bo=C5=A1tjan=20=C4=8Cade=C5=BE?= Date: Wed, 25 Feb 2026 12:20:57 +0100 Subject: [PATCH] Fix: macOS 2 finger tap moves moves slider instead of opening context menu (#12375) --- src/slic3r/GUI/IMSlider.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/IMSlider.cpp b/src/slic3r/GUI/IMSlider.cpp index 3bfc26cd11..15b1237410 100644 --- a/src/slic3r/GUI/IMSlider.cpp +++ b/src/slic3r/GUI/IMSlider.cpp @@ -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)) {