FIRE-3842; handle right mouse button in LLSideTrayButton.

Nicky 2011-11-20 01:06:17 +01:00
parent decc787f40
commit 1fba4b8ad7
1 changed files with 12 additions and 0 deletions

View File

@ -106,6 +106,18 @@ bool LLSideTray::instanceCreated ()
class LLSideTrayButton : public LLButton
{
public:
// <ND> FIRE-3842; handle right mouse here and swallow it, so sidebars do not get confused.
BOOL handleRightMouseDown(S32 x, S32 y, MASK mask)
{
return FALSE;
}
BOOL handleRightMouseUp(S32 x, S32 y, MASK mask)
{
return FALSE;
}
// </ND>
/*virtual*/ BOOL handleMouseDown(S32 x, S32 y, MASK mask)
{
// Route future Mouse messages here preemptively. (Release on mouse up.)