Fixed OnWhile() function for the PrusaDoubleSlider (#1913)

Current behavior: Move selected thumb only. If no one thumb is selected, set selection to the thumb nearest to the current mouse position
This commit is contained in:
YuSanka 2019-03-11 12:58:46 +01:00
parent a0d5a961bd
commit c77d15c98b
2 changed files with 16 additions and 21 deletions

View file

@ -771,7 +771,7 @@ protected:
void draw_thumb_text(wxDC& dc, const wxPoint& pos, const SelectedSlider& selection) const;
void update_thumb_rect(const wxCoord& begin_x, const wxCoord& begin_y, const SelectedSlider& selection);
void detect_selected_slider(const wxPoint& pt, const bool is_mouse_wheel = false);
void detect_selected_slider(const wxPoint& pt);
void correct_lower_value();
void correct_higher_value();
void move_current_thumb(const bool condition);