diff options
author | angela <angela@lindenlab.com> | 2010-03-04 10:35:51 +0800 |
---|---|---|
committer | angela <angela@lindenlab.com> | 2010-03-04 10:35:51 +0800 |
commit | f9815a6d13074cc3d1adda5aa41171f855097977 (patch) | |
tree | e960736102bb2a4f9cd46a6cbf7e04d4e0f0b187 /indra/newview/llinventorypanel.cpp | |
parent | 06b5cd096f9125c8c9b472487e841c19f5e62015 (diff) | |
parent | 2b5ea03a40c7bdd5962dc25c807b4ce5abb49bde (diff) |
merge
Diffstat (limited to 'indra/newview/llinventorypanel.cpp')
-rw-r--r-- | indra/newview/llinventorypanel.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp index 048ed10886..8097985ade 100644 --- a/indra/newview/llinventorypanel.cpp +++ b/indra/newview/llinventorypanel.cpp @@ -681,6 +681,21 @@ BOOL LLInventoryPanel::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop, return handled; } +// virtual +void LLInventoryPanel::onMouseEnter(S32 x, S32 y, MASK mask) +{ + LLPanel::onMouseEnter(x, y, mask); + // don't auto-scroll a list when cursor is over Inventory. See EXT-3981. + mFolders->setEnableScroll(false); +} + +// virtual +void LLInventoryPanel::onMouseLeave(S32 x, S32 y, MASK mask) +{ + LLPanel::onMouseLeave(x, y, mask); + mFolders->setEnableScroll(true); +} + void LLInventoryPanel::onFocusLost() { // inventory no longer handles cut/copy/paste/delete |