From 422ce5d4bc57f8cd974b341e54d6571e9228fce5 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 18 Apr 2006 21:19:53 +0000 Subject: [PATCH] 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 --- src/kits/interface/Slider.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/kits/interface/Slider.cpp b/src/kits/interface/Slider.cpp index 46744953fa..9fe0a47bf1 100644 --- a/src/kits/interface/Slider.cpp +++ b/src/kits/interface/Slider.cpp @@ -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(); }