diff options
author | andreykproductengine <akleshchev@productengine.com> | 2017-02-21 19:30:41 +0200 |
---|---|---|
committer | andreykproductengine <akleshchev@productengine.com> | 2017-02-21 19:30:41 +0200 |
commit | aa52236c5570a0b971b2524da655ccff6a1bff0d (patch) | |
tree | a15e52ff82817c94db289a136d83cd06ed96c7d7 /indra/newview | |
parent | 3faad84a533b80e4a40e29e880d1608ffb0763ef (diff) |
MAINT-768 Fixed mouse hover triggers foreground and background UI
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llinventorylistitem.cpp | 4 | ||||
-rw-r--r-- | indra/newview/llinventorylistitem.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/indra/newview/llinventorylistitem.cpp b/indra/newview/llinventorylistitem.cpp index 0601796436..12bb609df8 100644 --- a/indra/newview/llinventorylistitem.cpp +++ b/indra/newview/llinventorylistitem.cpp @@ -182,10 +182,10 @@ void LLPanelInventoryListItemBase::setValue(const LLSD& value) mSelected = value["selected"]; } -void LLPanelInventoryListItemBase::onMouseEnter(S32 x, S32 y, MASK mask) +BOOL LLPanelInventoryListItemBase::handleHover(S32 x, S32 y, MASK mask) { mHovered = true; - LLPanel::onMouseEnter(x, y, mask); + return LLPanel::handleHover(x, y, mask); } void LLPanelInventoryListItemBase::onMouseLeave(S32 x, S32 y, MASK mask) diff --git a/indra/newview/llinventorylistitem.h b/indra/newview/llinventorylistitem.h index b1ef6c74ee..d4dd212cc3 100644 --- a/indra/newview/llinventorylistitem.h +++ b/indra/newview/llinventorylistitem.h @@ -129,8 +129,8 @@ public: */ /*virtual*/ S32 notify(const LLSD& info); - /* Highlights item */ - /*virtual*/ void onMouseEnter(S32 x, S32 y, MASK mask); + /* Highlights item */ + /*virtual*/ BOOL handleHover(S32 x, S32 y, MASK mask); /* Removes item highlight */ /*virtual*/ void onMouseLeave(S32 x, S32 y, MASK mask); @@ -153,6 +153,7 @@ public: LLViewerInventoryItem* getItem() const; void setSeparatorVisible(bool visible) { mSeparatorVisible = visible; } + void resetHighlight() { mHovered = FALSE; } virtual ~LLPanelInventoryListItemBase(){} |