SL-1531 Hover highlight should be consistent with mouse selection
parent
2456715a40
commit
b7a1b499fd
|
|
@ -507,17 +507,14 @@ BOOL LLMultiSlider::handleHover(S32 x, S32 y, MASK mask)
|
|||
{
|
||||
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();
|
||||
std::map<std::string, LLRect>::iterator mIt = mThumbRects.begin();
|
||||
for (; mIt != mThumbRects.end(); mIt++)
|
||||
if (mIt->second.pointInRect(x, y))
|
||||
{
|
||||
if (mIt->second.pointInRect(x, y))
|
||||
{
|
||||
mHoverSlider = mIt->first;
|
||||
break;
|
||||
}
|
||||
mHoverSlider = mIt->first;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue