Skip to content

DragEndEvent 继承自: Event[EventControlType]

Completion payload for drag gestures.

属性 ​

名称类型默认值说明
local_positionOffsetmetadata={'data_field': 'l'}The local position in the coordinate system of the event receiver when the drag gesture has been completed.
global_positionOffsetmetadata={'data_field': 'g'}The global position the pointer is located at when the drag gesture has been completed.
velocityOffsetmetadata={'data_field': 'v'}The velocity vector the pointer was moving when it stopped contacting the screen, in logical pixels per second.
primary_velocityOptional[float]NoneThe velocity the pointer was moving along the primary axis when it stopped contacting the screen, in logical pixels per second.

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