Don't leave links underlined if the mouse leaves

This commit is contained in:
Lirusaito
2019-01-20 15:45:52 -05:00
parent 0aa6fa9302
commit 02c06f1654
2 changed files with 9 additions and 0 deletions

View File

@@ -1681,6 +1681,14 @@ BOOL LLTextEditor::handleHover(S32 x, S32 y, MASK mask)
return handled;
}
void LLTextEditor::onMouseLeave(S32 x, S32 y, MASK mask)
{
if (mHoverSegment)
{
mHoverSegment->underlineOnHover(false);
mHoverSegment = nullptr;
}
}
BOOL LLTextEditor::handleMouseUp(S32 x, S32 y, MASK mask)
{