Implemented new suggestion from content team:

Just HigherThumb is moved to selected position after mouse click on color band
This commit is contained in:
YuSanka 2019-12-02 15:04:15 +01:00
parent d182c35248
commit a00ff7b06f

View file

@ -3027,7 +3027,8 @@ void DoubleSlider::OnLeftDown(wxMouseEvent& event)
get_value_from_position(pos.x, pos.y);
if (mouse_val >= 0)
{
if (abs(mouse_val - m_lower_value) < abs(mouse_val - m_higher_value)) {
// if (abs(mouse_val - m_lower_value) < abs(mouse_val - m_higher_value)) {
if ( mouse_val <= m_lower_value ) {
SetLowerValue(mouse_val);
correct_lower_value();
m_selection = ssLower;