There was an "off by one" error in the routine used to detect if a click was inside the arrow buttons.

Reported by mmadia in ticket #3611.  Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30596 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Saint-Pierre
2009-05-03 01:23:12 +00:00
parent 021f35891b
commit a7ed06cedd
+1 -1
View File
@@ -1478,7 +1478,7 @@ BScrollBar::_ButtonFor(BPoint where) const
}
BRect rect(bounds.left, bounds.top,
bounds.left + buttonSize - 1.0, bounds.top + buttonSize - 1.0);
bounds.left + buttonSize, bounds.top + buttonSize);
if (fOrientation == B_VERTICAL) {
if (rect.Contains(where))