diff options
| author | andreykproductengine <andreykproductengine@lindenlab.com> | 2018-10-05 18:05:36 +0300 | 
|---|---|---|
| committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2018-10-05 18:05:36 +0300 | 
| commit | 6fff70222b60674f0e3cc531e402afb9e7c184e3 (patch) | |
| tree | 7c7de45aaafc0c9f82379825e1f03cdd3754b6e9 | |
| parent | d60588ec4fe6adc67de7938bc8ed9570f6cb187c (diff) | |
SL-9818 [EEP] Single click on Cloud Scroll number input field doesn't select it
| -rw-r--r-- | indra/llui/llxyvector.cpp | 17 | 
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); +    }  }  | 
