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
This commit is contained in:
Axel Dörfler 2009-07-31 01:24:21 +00:00
parent 7f1bf82c6e
commit 74b19566ee

View File

@ -8,6 +8,8 @@
* Stephan Aßmus <superstippi@gmx.de>
* Artur Wyszynski
*/
#include <TabView.h>
#include <new>
@ -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;