Handle the scroll wheel changing over scrollbars.

* Extract the scrollbar change based on the mouse wheel delta into a protected
  method of BView.
* Call that method from BScrollBar's MessageReceived.

With this change it is now a bit easier to scroll horizontally around the
system by putting the mouse cursor over a horizontal scrollbar and using the
wheel.

Fixes #8631.
This commit is contained in:
Ryan Leavengood
2012-06-24 10:50:42 -04:00
parent bfc18b1ecd
commit 9f5864ab09
3 changed files with 40 additions and 21 deletions
+2
View File
@@ -584,6 +584,8 @@ protected:
virtual void LayoutChanged();
void ScrollWithMouseWheelDelta(BScrollBar*, float);
private:
void _Layout(bool force, BLayoutContext* context);
void _LayoutLeft(BLayout* deleted);