SL-15727 Mouse 'up' event was ignored

meow-7.2.2
Andrey Kleshchev 2021-07-30 01:21:21 +03:00
parent 8ee63b463f
commit 573c23488f
1 changed files with 5 additions and 1 deletions

View File

@ -1065,11 +1065,15 @@ bool LLViewerInput::handleGlobalBindsKeyUp(KEY key, MASK mask)
bool LLViewerInput::handleGlobalBindsMouse(EMouseClickType clicktype, MASK mask, bool down)
{
bool res = false;
S32 mode = getMode();
if (down)
{
S32 mode = getMode();
res = scanMouse(mGlobalMouseBindings[mode], mGlobalMouseBindings[mode].size(), clicktype, mask, MOUSE_STATE_DOWN, true);
}
else
{
res = scanMouse(mGlobalMouseBindings[mode], mGlobalMouseBindings[mode].size(), clicktype, mask, MOUSE_STATE_UP, true);
}
return res;
}