Allow right clicking to navigate through notify tips that aren't gone

Also clean up logic, since we're now always handling right clicks
This commit is contained in:
Liru Færs
2019-12-22 21:56:59 -05:00
parent 967b3646a6
commit 432b4ab69d

View File

@@ -435,10 +435,9 @@ BOOL LLNotifyBox::handleMouseUp(S32 x, S32 y, MASK mask)
// virtual
BOOL LLNotifyBox::handleRightMouseDown(S32 x, S32 y, MASK mask)
{
bool done = LLPanel::handleRightMouseDown(x, y, mask);
if (!done && !mIsTip) moveToBack(true);
if (done && mIsTip) mEventTimer.stop(); // Stop timer on hover so the user can interact
return done || !mIsTip;
if (!LLPanel::handleRightMouseDown(x, y, mask)) // Allow Children to handle first
moveToBack(true);
return true;
}
// virtual