Skip to main content
Version: 23.5.0

Touchscreen.touchMove() 方法

¥Touchscreen.touchMove() method

调度 touchMove 事件。

¥Dispatches a touchMove event.

签名

¥Signature

class Touchscreen {
abstract touchMove(x: number, y: number): Promise<void>;
}

参数

¥Parameters

范围

类型

描述

x

数字

移动的水平位置。

y

数字

移动的垂直位置。

Returns:

Promise<void>

备注

¥Remarks

并非每个 touchMove 调用都会导致触发 touchmove 事件,具体取决于浏览器的优化。例如,Chrome throttles 触摸移动事件。

¥Not every touchMove call results in a touchmove event being emitted, depending on the browser's optimizations. For example, Chrome throttles touch move events.