diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-07-30 01:21:21 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-07-30 01:21:21 +0300 |
commit | 573c23488fb0b47b5041f56084fcd2a43b7913c6 (patch) | |
tree | e5f5e37ab0f88007602e9ff4be6a224fe94956e0 | |
parent | 8ee63b463f555c48b47f7d0b91eedb8db5ec0ebd (diff) |
SL-15727 Mouse 'up' event was ignored
-rw-r--r-- | indra/newview/llviewerinput.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llviewerinput.cpp b/indra/newview/llviewerinput.cpp index a43b49a316..6629a2ffac 100644 --- a/indra/newview/llviewerinput.cpp +++ b/indra/newview/llviewerinput.cpp @@ -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; } |