From 643994d17aa552888a2458115c38dac80df1a4d6 Mon Sep 17 00:00:00 2001 From: Rye Mutt Date: Tue, 26 Dec 2023 23:52:57 -0500 Subject: [PATCH] Fix movement getting stuck when clicking around camera floater --- indra/newview/lljoystickbutton.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/indra/newview/lljoystickbutton.cpp b/indra/newview/lljoystickbutton.cpp index 10a1cd6b71a..a01bc16943f 100644 --- a/indra/newview/lljoystickbutton.cpp +++ b/indra/newview/lljoystickbutton.cpp @@ -446,7 +446,6 @@ void LLJoystickCameraRotate::updateSlop() bool LLJoystickCameraRotate::handleMouseDown(S32 x, S32 y, MASK mask) { - gAgent.setMovementLocked(true); updateSlop(); // Set initial offset based on initial click location @@ -494,7 +493,12 @@ bool LLJoystickCameraRotate::handleMouseDown(S32 x, S32 y, MASK mask) mInitialQuadrant = JQ_RIGHT; } - return LLJoystick::handleMouseDown(x, y, mask); + bool res = LLJoystick::handleMouseDown(x, y, mask); + if (res) + { + gAgent.setMovementLocked(TRUE); + } + return res; } bool LLJoystickCameraRotate::handleMouseUp(S32 x, S32 y, MASK mask)