Make touchscreen events Windows-only

They break things on macOS and probably also on GTK
according to the wxWidgets documentation.
This commit is contained in:
Jon Evans 2024-06-09 13:18:32 -04:00
parent 76b2741a92
commit 74517856ca
2 changed files with 4 additions and 0 deletions

View File

@ -149,7 +149,9 @@ EDA_3D_CANVAS::EDA_3D_CANVAS( wxWindow* aParent, const wxGLAttributes& aGLAttrib
wxASSERT( a3DCachePointer != nullptr );
m_boardAdapter.Set3dCacheManager( a3DCachePointer );
#ifdef __WXMSW__
EnableTouchEvents( wxTOUCH_ZOOM_GESTURE | wxTOUCH_PAN_GESTURES | wxTOUCH_ROTATE_GESTURE );
#endif
const wxEventType events[] =
{

View File

@ -133,6 +133,7 @@ WX_VIEW_CONTROLS::WX_VIEW_CONTROLS( VIEW* aView, EDA_DRAW_PANEL_GAL* aParentPane
wxMouseEventHandler( WX_VIEW_CONTROLS::onCaptureLost ), nullptr, this );
#endif
#ifdef __WXMSW__
if( m_parentPanel->EnableTouchEvents( wxTOUCH_ZOOM_GESTURE | wxTOUCH_PAN_GESTURES ) )
{
m_parentPanel->Connect( wxEVT_GESTURE_ZOOM,
@ -143,6 +144,7 @@ WX_VIEW_CONTROLS::WX_VIEW_CONTROLS( VIEW* aView, EDA_DRAW_PANEL_GAL* aParentPane
wxPanGestureEventHandler( WX_VIEW_CONTROLS::onPanGesture ), nullptr,
this );
}
#endif
m_cursorWarped = false;