summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2018-10-05 15:52:24 +0000
committerRider Linden <rider@lindenlab.com>2018-10-05 15:52:24 +0000
commit931ff63019042e45a6ad5ad3df1624c4a49187c3 (patch)
treec8814b80d782a782d325b3b7791fb951fd5b8ecf /indra/llui
parent8922c46ecf63c127053dfdf1b16834864c8f9264 (diff)
parent6fff70222b60674f0e3cc531e402afb9e7c184e3 (diff)
Merged in andreykproductengine/maint-eep2 (pull request #132)
SL-9822 and SL-9818 Approved-by: Maxim Nikolenko <maximnproductengine@lindenlab.com> Approved-by: Andrey Lihatskiy <andreylproductengine@lindenlab.com>
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llxyvector.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/indra/llui/llxyvector.cpp b/indra/llui/llxyvector.cpp
index 48f38b8a92..9d5823e368 100644
--- a/indra/llui/llxyvector.cpp
+++ b/indra/llui/llxyvector.cpp
@@ -289,7 +289,14 @@ BOOL LLXYVector::handleMouseUp(S32 x, S32 y, MASK mask)
make_ui_sound("UISndClickRelease");
}
- return TRUE;
+ if (mTouchArea->getRect().pointInRect(x, y))
+ {
+ return TRUE;
+ }
+ else
+ {
+ return LLUICtrl::handleMouseUp(x, y, mask);
+ }
}
BOOL LLXYVector::handleMouseDown(S32 x, S32 y, MASK mask)
@@ -299,8 +306,12 @@ BOOL LLXYVector::handleMouseDown(S32 x, S32 y, MASK mask)
{
gFocusMgr.setMouseCapture(this);
make_ui_sound("UISndClick");
- }
- return TRUE;
+ return TRUE;
+ }
+ else
+ {
+ return LLUICtrl::handleMouseDown(x, y, mask);
+ }
}