STORM-1305 WIP Fixed texture control to not display hand cursor outside of the texture.
Also click outside of the texture will not show the picker anymore.master
parent
94687fd05e
commit
c7bca4602e
|
|
@ -1093,7 +1093,7 @@ public:
|
|||
|
||||
BOOL LLTextureCtrl::handleHover(S32 x, S32 y, MASK mask)
|
||||
{
|
||||
getWindow()->setCursor(UI_CURSOR_HAND);
|
||||
getWindow()->setCursor(mBorder->parentPointInView(x,y) ? UI_CURSOR_HAND : UI_CURSOR_ARROW);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
@ -1102,7 +1102,7 @@ BOOL LLTextureCtrl::handleMouseDown(S32 x, S32 y, MASK mask)
|
|||
{
|
||||
BOOL handled = LLUICtrl::handleMouseDown( x, y , mask );
|
||||
|
||||
if( !handled )
|
||||
if (!handled && mBorder->parentPointInView(x, y))
|
||||
{
|
||||
showPicker(FALSE);
|
||||
//grab textures first...
|
||||
|
|
|
|||
Loading…
Reference in New Issue