主题
DragEndEvent 继承自: Event[EventControlType]
Completion payload for drag gestures.
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
local_position | Offset | metadata={'data_field': 'l'} | The local position in the coordinate system of the event receiver when the drag gesture has been completed. |
global_position | Offset | metadata={'data_field': 'g'} | The global position the pointer is located at when the drag gesture has been completed. |
velocity | Offset | metadata={'data_field': 'v'} | The velocity vector the pointer was moving when it stopped contacting the screen, in logical pixels per second. |
primary_velocity | Optional[float] | None | The velocity the pointer was moving along the primary axis when it stopped contacting the screen, in logical pixels per second. |