|
|
@ -230,6 +230,7 @@ namespace Avalonia.Input |
|
|
PointerMovedEvent.AddClassHandler<InputElement>((x, e) => x.OnGesturePointerMoved(e), handledEventsToo: true); |
|
|
PointerMovedEvent.AddClassHandler<InputElement>((x, e) => x.OnGesturePointerMoved(e), handledEventsToo: true); |
|
|
PointerPressedEvent.AddClassHandler<InputElement>((x, e) => x.OnGesturePointerPressed(e), handledEventsToo: true); |
|
|
PointerPressedEvent.AddClassHandler<InputElement>((x, e) => x.OnGesturePointerPressed(e), handledEventsToo: true); |
|
|
PointerReleasedEvent.AddClassHandler<InputElement>((x, e) => x.OnGesturePointerReleased(e), handledEventsToo: true); |
|
|
PointerReleasedEvent.AddClassHandler<InputElement>((x, e) => x.OnGesturePointerReleased(e), handledEventsToo: true); |
|
|
|
|
|
PointerCaptureLostEvent.AddClassHandler<InputElement>((x, e) => x.OnGesturePointerCaptureLost(e), handledEventsToo: true); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public InputElement() |
|
|
public InputElement() |
|
|
@ -615,6 +616,11 @@ namespace Avalonia.Input |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void OnGesturePointerCaptureLost(PointerCaptureLostEventArgs e) |
|
|
|
|
|
{ |
|
|
|
|
|
_gestureRecognizers?.HandleCaptureLost(e.Pointer); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private void OnGesturePointerPressed(PointerPressedEventArgs e) |
|
|
private void OnGesturePointerPressed(PointerPressedEventArgs e) |
|
|
{ |
|
|
{ |
|
|
if (!e.IsGestureRecognitionSkipped) |
|
|
if (!e.IsGestureRecognitionSkipped) |
|
|
|