summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-08-10 23:47:22 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-08-10 23:48:38 +0300
commited14e35a0681b6094f764916dbd66474e38381ed (patch)
tree38bede2d9a848d76f679fe10c02dcd99e93ad8df /indra/newview
parent9df5c66d2db634525410e5993bad1f6c3f8ee30f (diff)
SL-15794 Rapidly clicking objects or attachments triggers teleport
All doubleclicks should be treated as clicks in scope of editor
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lltoolcomp.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/lltoolcomp.cpp b/indra/newview/lltoolcomp.cpp
index 9ac1810964..6d54a3770c 100644
--- a/indra/newview/lltoolcomp.cpp
+++ b/indra/newview/lltoolcomp.cpp
@@ -344,7 +344,9 @@ BOOL LLToolCompTranslate::handleDoubleClick(S32 x, S32 y, MASK mask)
}
// Nothing selected means the first mouse click was probably
// bad, so try again.
- return FALSE;
+ // This also consumes the event to prevent things like double-click
+ // teleport from triggering.
+ return handleMouseDown(x, y, mask);
}