diff --git a/src/slic3r/GUI/ImageGrid.cpp b/src/slic3r/GUI/ImageGrid.cpp index 67f436229..7812ed6b1 100644 --- a/src/slic3r/GUI/ImageGrid.cpp +++ b/src/slic3r/GUI/ImageGrid.cpp @@ -370,7 +370,7 @@ void ImageGrid::resize(wxSizeEvent& event) void ImageGrid::mouseWheelMoved(wxMouseEvent &event) { - auto delta = (event.GetWheelRotation() < 0 == event.IsWheelInverted()) ? -1 : 1; + auto delta = event.GetWheelRotation() < 0 ? 1 : -1; int off = m_row_offset + delta; if (off >= 0 && off < m_row_count) { m_row_offset = off; diff --git a/src/slic3r/GUI/Widgets/ComboBox.cpp b/src/slic3r/GUI/Widgets/ComboBox.cpp index 01d7d9614..0b36f85e7 100644 --- a/src/slic3r/GUI/Widgets/ComboBox.cpp +++ b/src/slic3r/GUI/Widgets/ComboBox.cpp @@ -222,7 +222,7 @@ void ComboBox::mouseWheelMoved(wxMouseEvent &event) { event.Skip(); if (drop_down) return; - auto delta = (event.GetWheelRotation() < 0 == event.IsWheelInverted()) ? -1 : 1; + auto delta = event.GetWheelRotation() < 0 ? 1 : -1; unsigned int n = GetSelection() + delta; if (n < GetCount()) { SetSelection((int) n); diff --git a/src/slic3r/GUI/Widgets/SpinInput.cpp b/src/slic3r/GUI/Widgets/SpinInput.cpp index 9bea97dcd..d4b03795b 100644 --- a/src/slic3r/GUI/Widgets/SpinInput.cpp +++ b/src/slic3r/GUI/Widgets/SpinInput.cpp @@ -288,7 +288,7 @@ void SpinInput::onTextEnter(wxCommandEvent &event) void SpinInput::mouseWheelMoved(wxMouseEvent &event) { - auto delta = (event.GetWheelRotation() < 0 == event.IsWheelInverted()) ? 1 : -1; + auto delta = event.GetWheelRotation() < 0 ? 1 : -1; SetValue(val + delta); sendSpinEvent(); text_ctrl->SetFocus();