Skip to content

Commit 80fa0fb

Browse files
authored
Merge pull request #256 from AlchemyViewer/rye/fix-movement-sticking
Fix movement getting stuck when clicking around camera floater
2 parents 6b78dbc + 643994d commit 80fa0fb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

indra/newview/lljoystickbutton.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,6 @@ void LLJoystickCameraRotate::updateSlop()
446446

447447
bool LLJoystickCameraRotate::handleMouseDown(S32 x, S32 y, MASK mask)
448448
{
449-
gAgent.setMovementLocked(true);
450449
updateSlop();
451450

452451
// Set initial offset based on initial click location
@@ -494,7 +493,12 @@ bool LLJoystickCameraRotate::handleMouseDown(S32 x, S32 y, MASK mask)
494493
mInitialQuadrant = JQ_RIGHT;
495494
}
496495

497-
return LLJoystick::handleMouseDown(x, y, mask);
496+
bool res = LLJoystick::handleMouseDown(x, y, mask);
497+
if (res)
498+
{
499+
gAgent.setMovementLocked(TRUE);
500+
}
501+
return res;
498502
}
499503

500504
bool LLJoystickCameraRotate::handleMouseUp(S32 x, S32 y, MASK mask)

0 commit comments

Comments
 (0)