A scroll list doesn't always handle double clicks

This commit is contained in:
Liru Færs
2019-08-18 17:20:20 -04:00
parent b93f4fa879
commit 29236442de

View File

@@ -1829,17 +1829,19 @@ BOOL LLScrollListCtrl::handleDoubleClick(S32 x, S32 y, MASK mask)
{
// Offer the click to the children, even if we aren't enabled
// so the scroll bars will work.
if (NULL == LLView::childrenHandleDoubleClick(x, y, mask))
handled = LLView::childrenHandleDoubleClick(x, y, mask) != nullptr;
if (!handled)
{
// Run the callback only if an item is being double-clicked.
if( mCanSelect && hitItem(x, y) && mOnDoubleClickCallback )
if (mCanSelect && mOnDoubleClickCallback && hitItem(x, y))
{
mOnDoubleClickCallback();
handled = true;
}
}
}
return TRUE;
return handled;
}
BOOL LLScrollListCtrl::handleClick(S32 x, S32 y, MASK mask)