Skip to main content

DragTargetEvent

Event payload for drag move and accepted-drop callbacks.

Inherits: Event

Properties

Properties

global_positionclass-attributeinstance-attribute

global_position: Offset = field(
    metadata={"data_field": "g"}
)

Pointer position in the global coordinate space.

local_positionclass-attributeinstance-attribute

local_position: Offset = field(metadata={"data_field": "l"})

Pointer position relative to the target bounds.

srcclass-attributeinstance-attribute

src: Draggable = field(init=False)

Source Draggable control resolved from src_id.

src_idinstance-attribute

src_id: int | None

ID of the Draggable source control, if available.