From 74b19566eea841e86a520e9d3cdfb6c6e4210c11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 31 Jul 2009 01:24:21 +0000 Subject: [PATCH] Turned off mouse wheel support in BTabView to switch the tabs. I think that functionality like this is mostly annoying with little use to be honest, but other opinions are welcome, of course :-) It reminds me too much about the insane workspace switching via the mouse wheel in Ubuntu. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32008 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/TabView.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/kits/interface/TabView.cpp b/src/kits/interface/TabView.cpp index f8915aeabb..2cc8784a31 100644 --- a/src/kits/interface/TabView.cpp +++ b/src/kits/interface/TabView.cpp @@ -8,6 +8,8 @@ * Stephan Aßmus * Artur Wyszynski */ + + #include #include @@ -599,6 +601,7 @@ BTabView::MessageReceived(BMessage *message) break; } +#if 0 case B_MOUSE_WHEEL_CHANGED: { float deltaX = 0.0f; @@ -615,13 +618,16 @@ BTabView::MessageReceived(BMessage *message) int32 selection = Selection(); int32 numTabs = CountTabs(); if (deltaY > 0 && selection < numTabs - 1) { - //move to the right tab. + // move to the right tab. Select(Selection() + 1); } else if (deltaY < 0 && selection > 0 && numTabs > 1) { - //move to the left tab. + // move to the left tab. Select(selection - 1); } + break; } +#endif + default: BView::MessageReceived(message); break;