touchmove 触摸移动事件
touchmove
类型: MethodDeclaration
定义位置: ui.ts
描述
触摸移动事件
参数 event: 脚本触摸事件
参数
| 参数名 | 类型 | 描述 | 默认值 |
|---|---|---|---|
event | ScriptTouchEvent | - | - |
返回值
类型: void
源代码
位置: 第 799 行
private touchmove(event: ScriptTouchEvent): void {
for (const copy of ScriptTouchEvent.forEachElement(event)) {
if (copy.target instanceof UIElement) {
Input.bubbles.push(true)
copy.target.emit('touchmove', event, true)
Input.bubbles.pop()
}
}
if (!ScriptTouchEvent.loadGlobalTouchEvent(event)) {
Input.bubbles.stop()
}
}
文档生成时间:2026/2/1 16:51:40