Disabled the 3DConnexion mouse scroll wheel spurious events filtering

on other platforms than Windows.
This commit is contained in:
bubnikv 2020-03-04 11:55:47 +01:00
parent 0b96855c2e
commit c9df6e5cf8

View File

@ -3082,10 +3082,11 @@ void GLCanvas3D::on_key(wxKeyEvent& evt)
void GLCanvas3D::on_mouse_wheel(wxMouseEvent& evt) void GLCanvas3D::on_mouse_wheel(wxMouseEvent& evt)
{ {
// try to filter out events coming from mouse 3d #ifdef WIN32
Mouse3DController& controller = wxGetApp().plater()->get_mouse3d_controller(); // Try to filter out spurious mouse wheel events comming from 3D mouse.
if (controller.process_mouse_wheel()) if (wxGetApp().plater()->get_mouse3d_controller().process_mouse_wheel())
return; return;
#endif
if (!m_initialized) if (!m_initialized)
return; return;