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:
Stefano Ceccherini
2006-04-18 21:19:53 +00:00
parent 1b5b2e4c35
commit 422ce5d4bc
+1 -4
View File
@@ -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();
} }