Browse Source

Handle pointer down/up events in Thumb.

Fixes #1372.
pull/1373/head
Steven Kirk 9 years ago
parent
commit
92094473e3
  1. 2
      src/Avalonia.Controls/Primitives/Thumb.cs

2
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

Loading…
Cancel
Save