Compare commits

...

1 Commits

View File

@@ -161,15 +161,13 @@ CDockAreaTabBar::~CDockAreaTabBar()
void CDockAreaTabBar::wheelEvent(QWheelEvent* Event) void CDockAreaTabBar::wheelEvent(QWheelEvent* Event)
{ {
Event->accept(); Event->accept();
const int direction = Event->angleDelta().y(); int numPixels = Event->pixelDelta().y();
if (direction < 0) if (!numPixels)
{ {
horizontalScrollBar()->setValue(horizontalScrollBar()->value() + 20); numPixels = Event->angleDelta().y() / 5;
}
else
{
horizontalScrollBar()->setValue(horizontalScrollBar()->value() - 20);
} }
horizontalScrollBar()->setValue(horizontalScrollBar()->value() - numPixels);
} }