Skip to content
Snippets Groups Projects
Commit 45e291bf authored by Rider Linden's avatar Rider Linden
Browse files

Merged in andreykproductengine/maint-eep (pull request #254)

SL-1531 Hover highlight should be consistent with mouse selection
parents fcf25b69 b7a1b499
No related branches found
No related tags found
No related merge requests found
...@@ -507,17 +507,14 @@ BOOL LLMultiSlider::handleHover(S32 x, S32 y, MASK mask) ...@@ -507,17 +507,14 @@ BOOL LLMultiSlider::handleHover(S32 x, S32 y, MASK mask)
{ {
if (getEnabled()) if (getEnabled())
{ {
if (mHoverSlider.empty() || !getSliderThumbRect(mHoverSlider).pointInRect(x, y)) mHoverSlider.clear();
std::map<std::string, LLRect>::iterator mIt = mThumbRects.begin();
for (; mIt != mThumbRects.end(); mIt++)
{ {
mHoverSlider.clear(); if (mIt->second.pointInRect(x, y))
std::map<std::string, LLRect>::iterator mIt = mThumbRects.begin();
for (; mIt != mThumbRects.end(); mIt++)
{ {
if (mIt->second.pointInRect(x, y)) mHoverSlider = mIt->first;
{ break;
mHoverSlider = mIt->first;
break;
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment