FIX: transfer touch wheel event to pan gesture

Change-Id: Ic74662849a3728017a557417ec8cb1bf49826f15
(cherry picked from commit ccd1aa95de4abecbddecc0fb43ae7ce2296c6ede)
This commit is contained in:
chunmao.guo 2022-07-26 14:45:09 +08:00 committed by Lane.Wei
parent 0d94bc619e
commit 1705f3d5b7
3 changed files with 104 additions and 0 deletions

View file

@ -27,6 +27,7 @@
#include "slic3r/Utils/UndoRedo.hpp"
#include "slic3r/GUI/Gizmos/GLGizmoPainterBase.hpp"
#include "slic3r/GUI/BitmapCache.hpp"
#include "slic3r/Utils/MacDarkMode.hpp"
#include "GUI_App.hpp"
#include "GUI_ObjectList.hpp"
@ -2139,6 +2140,9 @@ void GLCanvas3D::bind_event_handlers()
m_canvas->Bind(wxEVT_GESTURE_ZOOM, &GLCanvas3D::on_gesture, this);
m_canvas->Bind(wxEVT_GESTURE_ROTATE, &GLCanvas3D::on_gesture, this);
m_canvas->EnableTouchEvents(wxTOUCH_ZOOM_GESTURE | wxTOUCH_ROTATE_GESTURE);
#if __WXOSX__
initGestures(m_canvas->GetHandle(), m_canvas); // for UIPanGestureRecognizer allowedScrollTypesMask
#endif
}
}