diff --git a/common/view/wx_view_controls.cpp b/common/view/wx_view_controls.cpp index 469084df5d..ad47dec39d 100644 --- a/common/view/wx_view_controls.cpp +++ b/common/view/wx_view_controls.cpp @@ -59,7 +59,9 @@ WX_VIEW_CONTROLS::WX_VIEW_CONTROLS( VIEW* aView, wxScrolledCanvas* aParentPanel m_state( IDLE ), m_parentPanel( aParentPanel ), m_scrollScale( 1.0, 1.0 ), +#ifdef __WXGTK3__ m_lastTimestamp( 0 ), +#endif m_cursorPos( 0, 0 ), m_updateCursor( true ) { diff --git a/include/view/wx_view_controls.h b/include/view/wx_view_controls.h index 2809ee2651..f94182d9fb 100644 --- a/include/view/wx_view_controls.h +++ b/include/view/wx_view_controls.h @@ -161,8 +161,10 @@ private: /// Current scrollbar position VECTOR2I m_scrollPos; - /// Last event timestamp to remove duplicates +#ifdef __WXGTK3__ + /// Last event timestamp used to de-bounce mouse wheel long int m_lastTimestamp; +#endif /// Current cursor position (world coordinates) VECTOR2D m_cursorPos;