diff options
| author | Oz Linden <oz@lindenlab.com> | 2011-02-24 22:27:08 -0500 |
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2011-02-24 22:27:08 -0500 |
| commit | ed73c8bf6357ca1e1a8009ead6b3b664e25c29c9 (patch) | |
| tree | 36a9cb02c09caed35696d35686948190b697cb7a /indra/newview/llsidetray.cpp | |
| parent | 2e7461277801dc0daa1e9ea509e079c980045f42 (diff) | |
| parent | 4c343c4506604b8dd0ac2d99a2b9661a1d382fc7 (diff) | |
pull latest changes from viewer-vs2010
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(); |
