diff options
| author | Tofu Buzzard <no-email> | 2011-02-01 09:45:28 -0800 |
|---|---|---|
| committer | Tofu Buzzard <no-email> | 2011-02-01 09:45:28 -0800 |
| commit | ce90d8f8da4f0d2ca6b3aa3a96c0ce68a64bd495 (patch) | |
| tree | d4d31830e96d75a8062074c3ce98b5884a0b47ba /indra/newview/llsidetray.cpp | |
| parent | 3f139aa20ab0ebd983837c2d041ca53a0e7c5fb8 (diff) | |
| parent | 7ddf7e17c01242901cef9219e27077e0d1243997 (diff) | |
merge
Diffstat (limited to 'indra/newview/llsidetray.cpp')
| -rw-r--r-- | indra/newview/llsidetray.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llsidetray.cpp b/indra/newview/llsidetray.cpp index 19d1bdee86..eb537c7d7b 100644 --- a/indra/newview/llsidetray.cpp +++ b/indra/newview/llsidetray.cpp @@ -141,6 +141,8 @@ public: void toggleTabDocked(); + BOOL handleScrollWheel(S32 x, S32 y, S32 clicks); + LLPanel *getPanel(); private: std::string mTabTitle; @@ -269,6 +271,15 @@ void LLSideTrayTab::toggleTabDocked() LLFloaterReg::toggleInstance("side_bar_tab", tab_name); } +BOOL LLSideTrayTab::handleScrollWheel(S32 x, S32 y, S32 clicks) +{ + // Let children handle the event + LLUICtrl::handleScrollWheel(x, y, clicks); + + // and then eat it to prevent in-world scrolling (STORM-351). + return TRUE; +} + void LLSideTrayTab::dock(LLFloater* floater_tab) { LLSideTray* side_tray = getSideTray(); |
