mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +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();
|
ImGuiWrapper& imgui = *wxGetApp().imgui();
|
||||||
|
|
||||||
float wheel = 0.0f;
|
float wheel = evt.GetWheelRotation();
|
||||||
wheel = evt.GetWheelRotation() > 0 ? 1.0f : -1.0f;
|
// mac trackpads trigger this event with value 0 when right-clicking with two fingers
|
||||||
if (wheel == 0.0f)
|
if (wheel == 0.0f)
|
||||||
return;
|
return;
|
||||||
|
wheel = wheel > 0 ? 1.0f : -1.0f;
|
||||||
|
|
||||||
#ifdef __WXOSX__
|
#ifdef __WXOSX__
|
||||||
if (wxGetKeyState(WXK_SHIFT)) {
|
if (wxGetKeyState(WXK_SHIFT)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user