Table of Contents

Class SKDragGestureEventArgs

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

Provides data for drag gesture lifecycle events (DragStarted, DragUpdated, and DragEnded).

public class SKDragGestureEventArgs : EventArgs
Inheritance
SKDragGestureEventArgs
Inherited Members

Remarks

Drag events provide a higher-level lifecycle built on top of the underlying pan gesture. The lifecycle is:

  1. DragStarted: Fired once when the first pan movement occurs.
  2. DragUpdated: Fired continuously as the touch moves. Delta contains the incremental displacement from the previous position.
  3. DragEnded: Fired once when all touches are released.

Set Handled to true during DragStarted or DragUpdated to prevent the tracker from applying its default pan offset behavior.

DragStarted DragUpdated DragEnded SKPanGestureEventArgs

Constructors

SKDragGestureEventArgs(SKPoint, SKPoint)

Initializes a new instance of the SKDragGestureEventArgs class.

Properties

Delta

Gets the displacement from PreviousLocation to Location.

Handled

Gets or sets a value indicating whether the event has been handled.

Location

Gets the current touch location in view coordinates.

PreviousLocation

Gets the previous touch location in view coordinates.