From 57c6133c3b657084f195528b2429f1de3c994896 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 9 Jan 2011 20:40:35 +0000 Subject: (svn r21764) -Change: Make the scrollbar associated to a NWidgetMatrix scroll in steps of the matrix when using the wheel or the scrollbar-buttons. --- src/widget.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/widget.cpp') diff --git a/src/widget.cpp b/src/widget.cpp index 4170b2a01..84fdadbb8 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -1404,6 +1404,7 @@ void NWidgetMatrix::SetCount(int count) count += -this->pip_inter + this->pip_pre + this->pip_post; // We counted an inter too much in the multiplication above this->sb->SetCount(count); this->sb->SetCapacity(this->sb->IsVertical() ? this->current_y : this->current_x); + this->sb->SetStepSize(this->sb->IsVertical() ? this->widget_h : this->widget_w); } /** -- cgit v1.2.3-54-g00ecf