FIRE-10721: Let the LLTextbox handle the mouse scroll if it's visible to fix the scroll issue in the LSL editor output; Patch by Sei Lisa

Ansariel 2015-03-19 20:48:03 +01:00
parent 5481fcf1a4
commit ac1325fc2a
1 changed files with 7 additions and 0 deletions

View File

@ -1717,6 +1717,13 @@ void LLScrollListCtrl::setEnabled(BOOL enabled)
BOOL LLScrollListCtrl::handleScrollWheel(S32 x, S32 y, S32 clicks)
{
// <FS> FIRE-10721: Let the LLTextbox handle the mouse scroll if it's visible
if (mCommentTextView->getVisible())
{
return mCommentTextView->handleScrollWheel(x, y, clicks);
}
// </FS>
BOOL handled = FALSE;
// Pretend the mouse is over the scrollbar
handled = mScrollbar->handleScrollWheel( 0, 0, clicks );