pointermove 指针移动事件
pointermove
类型: MethodDeclaration
定义位置: input.ts
描述
指针移动事件
参数 event
: 指针事件
参数
参数名 | 类型 | 描述 | 默认值 |
---|---|---|---|
event | PointerEvent | - | - |
返回值
类型: void
源代码
位置: 第 516 行
private pointermove(event: PointerEvent): void {
// 在非100%缩放率的设备上,PointerEvent更好
// PointerEvent.clientX/clientY精确到小数
// MouseEvent.clientX/clientY精确到整数
const scriptEvent = new ScriptMouseEvent(event)
Mouse.calculateCoords(scriptEvent)
Input.emit('mousemove', scriptEvent)
}
文档生成时间:2025/7/7 12:07:06