Browse Source

Merge pull request #1373 from AvaloniaUI/fixes/1372-textbox-pointer-capture

Handle pointer down/up events in Thumb.
pull/1377/head
Steven Kirk 8 years ago
committed by GitHub
parent
commit
aa09db0f58
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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