Source/OxyPlot.Avalonia/PlotBase.Events.cs
/// <summary>
/// Invoked when an unhandled MouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
/// </summary>
/// <param name="e">The <see cref="T:System.Windows.Input.MouseEventArgs" /> that contains the event data.</param>
Invoked when an unhandled MouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Invoked when an unhandled MouseMove attached event reaches an element in its route that is derived from this class . Implement this method to add class handling for this event .
protected override void OnPointerMoved(PointerEventArgs e)
        {
            base.OnPointerMoved(e);
            if (e.Handled)
            {
                return;
            }
            if (e.Pointer.Type == PointerType.Touch)
            {
                var point = e.GetPosition(this).ToScreenPoint();
                var oldTouchPoints = TouchPositions.Values.ToArray();
                TouchPositions[e.Pointer.Id] = point;
                var newTouchPoints = TouchPositions.Values.ToArray();
                var touchEventArgs = new OxyTouchEventArgs(newTouchPoints, oldTouchPoints);
                e.Handled = ActualController.HandleTouchDelta(this, touchEventArgs);
            }
            else
            {
                e.Handled = ActualController.HandleMouseMove(this, e.ToMouseEventArgs(this));
            }
        }
protected override void OnPointerMoved ( PointerEventArgs e ) { base . OnPointerMoved ( e ) ; if ( e . Handled ) { return ; } if ( e . Pointer . Type == PointerType . Touch ) { var point = e . GetPosition ( this ) . ToScreenPoint ( ) ; var oldTouchPoints = TouchPositions . Values . ToArray ( ) ; TouchPositions [ e . Pointer . Id ] = point ; var newTouchPoints = TouchPositions . Values . ToArray ( ) ; var touchEventArgs = new OxyTouchEventArgs ( newTouchPoints , oldTouchPoints ) ; e . Handled = ActualController . HandleTouchDelta ( this , touchEventArgs ) ; } else { e . Handled = ActualController . HandleMouseMove ( this , e . ToMouseEventArgs ( this ) ) ; } }
Invoked when an unhandled MouseMove attached event reaches an element in its route that is derived from this class.
Invoked when an unhandled MouseMove attached event reaches an element in its route that is derived from this class .
e
PointerEventArgs
The  that contains the event data.
The that contains the event data .