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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user