DragStartEvent

Represents the event data associated with the start of a drag operation in Flet.

Inheritance

  • Inherits from Event.
  • Properties

  • **global_position**: Offset
  • * The global screen coordinates at which the pointer contacted the screen to initiate the drag. * Type: flet.controls.transform.Offset * Metadata: data_field: "g" * Defaults to origin if not specified.

  • **kind**: PointerDeviceType
  • * The type of device that initiated the drag event (e.g., mouse, touch). * Type: flet.controls.types.PointerDeviceType * Metadata: data_field: "k"

  • **local_position**: Offset
  • * The position within the coordinate system of the event receiver where the pointer contacted the screen. * Type: flet.controls.transform.Offset * Metadata: data_field: "l"

  • **timestamp**: Duration | None
  • * The recorded timestamp of the source pointer event that triggered this drag event. * Can be None if triggered from proxied events (e.g., accessibility). * Type: flet.controls.duration.Duration or None * Metadata: data_field: "ts" * Default: None