the synchronous version of BSlider::MouseDown() now discards old message events
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17169 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -494,16 +494,13 @@ BSlider::MouseDown(BPoint point)
|
|||||||
prevPoint = point;
|
prevPoint = point;
|
||||||
|
|
||||||
snooze(SnoozeAmount());
|
snooze(SnoozeAmount());
|
||||||
GetMouse(&point, &buttons, true);
|
GetMouse(&point, &buttons, false);
|
||||||
|
|
||||||
if (_ConstrainPoint(point, prevPoint)) {
|
if (_ConstrainPoint(point, prevPoint)) {
|
||||||
SetValue(ValueForPoint(point));
|
SetValue(ValueForPoint(point));
|
||||||
InvokeNotify(ModificationMessage(), B_CONTROL_MODIFIED);
|
InvokeNotify(ModificationMessage(), B_CONTROL_MODIFIED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ((Window()->Flags() & B_ASYNCHRONOUS_CONTROLS) == 0) {
|
|
||||||
if (_Location() != fInitialLocation)
|
if (_Location() != fInitialLocation)
|
||||||
Invoke();
|
Invoke();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user