Skip to content

DragUpdateEvent 继承自: Event[EventControlType]

Incremental payload for drag progress updates.

属性 ​

名称类型默认值说明
local_positionOffsetmetadata={'data_field': 'l'}The local position in the coordinate system of the event receiver at which the pointer contacted the screen.
global_positionOffsetmetadata={'data_field': 'g'}The pointer's global position when it triggered this update.
local_deltaOptional[Offset]NoneThe amount the pointer has moved in the local coordinate space of the event receiver since the start of the drag.
global_deltaOptional[Offset]NoneThe amount the pointer has moved in the global coordinate space since the start of the drag.
primary_deltaOptional[float]NoneThe amount the pointer has moved along the primary axis in the coordinate space of the event receiver since the previous update.
timestampOptional[Duration]NoneRecorded timestamp of the source pointer event that triggered the drag event. Could be None if triggered from proxied events such as accessibility.

关注我,学习大模型、大数据、Python等热门技术。