From 92094473e3e08953475e5223364f27dac6bf3cfc Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Thu, 15 Feb 2018 22:00:10 +0100 Subject: [PATCH] Handle pointer down/up events in Thumb. Fixes #1372. --- src/Avalonia.Controls/Primitives/Thumb.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Avalonia.Controls/Primitives/Thumb.cs b/src/Avalonia.Controls/Primitives/Thumb.cs index da4dc63d1e..b0f9ab1f85 100644 --- a/src/Avalonia.Controls/Primitives/Thumb.cs +++ b/src/Avalonia.Controls/Primitives/Thumb.cs @@ -75,6 +75,7 @@ namespace Avalonia.Controls.Primitives protected override void OnPointerPressed(PointerPressedEventArgs e) { e.Device.Capture(this); + e.Handled = true; _lastPoint = e.GetPosition(this); var ev = new VectorEventArgs @@ -91,6 +92,7 @@ namespace Avalonia.Controls.Primitives if (_lastPoint.HasValue) { e.Device.Capture(null); + e.Handled = true; _lastPoint = null; var ev = new VectorEventArgs