This should fix absolute scrolling when clicking on an area covered by the thumb.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20022 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Waldemar Kornewald 2007-01-30 20:22:24 +00:00
parent 9d4aa268db
commit e327ea521a

View File

@ -508,7 +508,8 @@ BScrollBar::MouseDown(BPoint where)
buttons = B_PRIMARY_MOUSE_BUTTON;
// hit test for the thumb
if (fPrivateData->fThumbFrame.Contains(where)) {
if (fPrivateData->fThumbFrame.Contains(where)
&& (buttons & B_SECONDARY_MOUSE_BUTTON) == 0) {
fPrivateData->fButtonDown = THUMB;
fPrivateData->fClickOffset = fPrivateData->fThumbFrame.LeftTop() - where;
Invalidate(fPrivateData->fThumbFrame);