Skip to content

Commit

Permalink
Fixed min slider not movable, when both, min and max on maxValue of s…
Browse files Browse the repository at this point in the history
…lider
  • Loading branch information
8vogt committed Feb 20, 2021
1 parent 43893bf commit 9879d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SEWorldGenPlugin/GUI/Controls/MyGuiControlRangedSlider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public override MyGuiControlBase HandleInput()
float endX = Size.X - MyGuiConstants.SLIDER_INSIDE_OFFSET_X;
float centerY = Size.Y / 2;

if(m_currentFocusThumb == null && m_maxThumb.GetBounds(GetPositionAbsoluteTopLeft()).Contains(mousePos) != ContainmentType.Disjoint)
if(m_currentFocusThumb == null && m_maxThumb.GetBounds(GetPositionAbsoluteTopLeft()).Contains(mousePos) != ContainmentType.Disjoint && !(m_minThumb.CurrentValue == m_maxValue))
{
m_currentFocusThumb = m_maxThumb;
m_maxThumb.ForcusThumb();
Expand Down

0 comments on commit 9879d44

Please sign in to comment.