From 835ca57cbd81e54aec8ff1ac331caff9b550a8a7 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Tue, 10 Aug 2021 23:47:22 +0300 Subject: SL-15794 Rapidly clicking objects or attachments triggers teleport All doubleclicks should be treated as clicks in scope of editor --- indra/newview/lltoolcomp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'indra/newview/lltoolcomp.cpp') diff --git a/indra/newview/lltoolcomp.cpp b/indra/newview/lltoolcomp.cpp index f9c327b46e..ba328f27c4 100644 --- a/indra/newview/lltoolcomp.cpp +++ b/indra/newview/lltoolcomp.cpp @@ -343,7 +343,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); } -- cgit v1.2.3