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:
parent
1b5b2e4c35
commit
422ce5d4bc
@ -494,16 +494,13 @@ BSlider::MouseDown(BPoint point)
|
||||
prevPoint = point;
|
||||
|
||||
snooze(SnoozeAmount());
|
||||
GetMouse(&point, &buttons, true);
|
||||
GetMouse(&point, &buttons, false);
|
||||
|
||||
if (_ConstrainPoint(point, prevPoint)) {
|
||||
SetValue(ValueForPoint(point));
|
||||
InvokeNotify(ModificationMessage(), B_CONTROL_MODIFIED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ((Window()->Flags() & B_ASYNCHRONOUS_CONTROLS) == 0) {
|
||||
if (_Location() != fInitialLocation)
|
||||
Invoke();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user