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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
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 |
|
|
|
|