Puppeteer 中文文档v25.8.0

Touchscreen.touchMove() 方法

在第一个活动的触摸上派发 touchMove 事件。

签名

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

参数

参数

类型

说明

x

number

移动的水平位置。

y

number

移动的垂直位置。

返回值:

Promise<void>

备注

并非每次 touchMove 调用都会派发 touchmove 事件,这取决于浏览器的优化。例如,Chrome 会对 touch move 事件进行节流