主题
DragUpdateEvent 继承自: Event[EventControlType]
Incremental payload for drag progress updates.
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
local_position | Offset | metadata={'data_field': 'l'} | The local position in the coordinate system of the event receiver at which the pointer contacted the screen. |
global_position | Offset | metadata={'data_field': 'g'} | The pointer's global position when it triggered this update. |
local_delta | Optional[Offset] | None | The amount the pointer has moved in the local coordinate space of the event receiver since the start of the drag. |
global_delta | Optional[Offset] | None | The amount the pointer has moved in the global coordinate space since the start of the drag. |
primary_delta | Optional[float] | None | The amount the pointer has moved along the primary axis in the coordinate space of the event receiver since the previous update. |
timestamp | Optional[Duration] | None | Recorded timestamp of the source pointer event that triggered the drag event. Could be None if triggered from proxied events such as accessibility. |