|
|
@ -85,7 +85,7 @@ namespace Avalonia.Controls.Primitives |
|
|
{ |
|
|
{ |
|
|
if (_lastPoint.HasValue) |
|
|
if (_lastPoint.HasValue) |
|
|
{ |
|
|
{ |
|
|
var point = e.GetPosition(this.GetVisualParent()); |
|
|
var point = e.GetPosition(null); |
|
|
var ev = new VectorEventArgs |
|
|
var ev = new VectorEventArgs |
|
|
{ |
|
|
{ |
|
|
RoutedEvent = DragDeltaEvent, |
|
|
RoutedEvent = DragDeltaEvent, |
|
|
@ -100,7 +100,7 @@ namespace Avalonia.Controls.Primitives |
|
|
protected override void OnPointerPressed(PointerPressedEventArgs e) |
|
|
protected override void OnPointerPressed(PointerPressedEventArgs e) |
|
|
{ |
|
|
{ |
|
|
e.Handled = true; |
|
|
e.Handled = true; |
|
|
_lastPoint = e.GetPosition(this.GetVisualParent()); |
|
|
_lastPoint = e.GetPosition(null); |
|
|
|
|
|
|
|
|
var ev = new VectorEventArgs |
|
|
var ev = new VectorEventArgs |
|
|
{ |
|
|
{ |
|
|
@ -123,7 +123,7 @@ namespace Avalonia.Controls.Primitives |
|
|
var ev = new VectorEventArgs |
|
|
var ev = new VectorEventArgs |
|
|
{ |
|
|
{ |
|
|
RoutedEvent = DragCompletedEvent, |
|
|
RoutedEvent = DragCompletedEvent, |
|
|
Vector = (Vector)e.GetPosition(this.GetVisualParent()), |
|
|
Vector = (Vector)e.GetPosition(null), |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
RaiseEvent(ev); |
|
|
RaiseEvent(ev); |
|
|
|