summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorpaul_productengine <none@none>2011-01-26 20:24:49 +0200
committerpaul_productengine <none@none>2011-01-26 20:24:49 +0200
commit5e6b4b5ad0dc56869430bcd31a942bdc7f8a2899 (patch)
tree06e2e0ef083baedd5b02c59aae051442c5083351 /indra/newview
parent714ba52df0397b58769e02ae9a7d9877a4505d34 (diff)
STORM-351 FIXED Scrolling flat list by mouse wheel changes zoom level in-world
- Prevent passing scroll event to in-world
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llsidetray.cpp11
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();