When the mouse leaves a scroll list, don't leave the mouse-over highlight shown

This commit is contained in:
Lirusaito
2013-07-18 04:58:29 -04:00
parent baef50e451
commit 8d87d3410e
2 changed files with 6 additions and 0 deletions

View File

@@ -1922,6 +1922,11 @@ BOOL LLScrollListCtrl::handleHover(S32 x,S32 y,MASK mask)
return handled;
}
void LLScrollListCtrl::onMouseLeave(S32 x, S32 y, MASK mask)
{
// clear mouse highlight
mouseOverHighlightNthItem(-1);
}
BOOL LLScrollListCtrl::handleKeyHere(KEY key,MASK mask )
{

View File

@@ -261,6 +261,7 @@ public:
/*virtual*/ void setFocus( BOOL b );
/*virtual*/ void onFocusReceived();
/*virtual*/ void onFocusLost();
/*virtual*/ void onMouseLeave(S32 x, S32 y, MASK mask);
/*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE);
virtual BOOL isDirty() const;