mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs: update docs about touchmove (#10847)
This commit is contained in:
parent
0ab6f76945
commit
73f741ea33
@ -24,3 +24,7 @@ class Touchscreen {
|
|||||||
**Returns:**
|
**Returns:**
|
||||||
|
|
||||||
Promise<void>
|
Promise<void>
|
||||||
|
|
||||||
|
## Remarks
|
||||||
|
|
||||||
|
Not every `touchMove` call results in a `touchmove` event being emitted, depending on the browser's optimizations. For example, Chrome [throttles](https://developer.chrome.com/blog/a-more-compatible-smoother-touch/#chromes-new-model-the-throttled-async-touchmove-model) touch move events.
|
||||||
|
@ -552,6 +552,13 @@ export class Touchscreen {
|
|||||||
* Dispatches a `touchMove` event.
|
* Dispatches a `touchMove` event.
|
||||||
* @param x - Horizontal position of the move.
|
* @param x - Horizontal position of the move.
|
||||||
* @param y - Vertical position of the move.
|
* @param y - Vertical position of the move.
|
||||||
|
*
|
||||||
|
* @remarks
|
||||||
|
*
|
||||||
|
* Not every `touchMove` call results in a `touchmove` event being emitted,
|
||||||
|
* depending on the browser's optimizations. For example, Chrome
|
||||||
|
* {@link https://developer.chrome.com/blog/a-more-compatible-smoother-touch/#chromes-new-model-the-throttled-async-touchmove-model | throttles}
|
||||||
|
* touch move events.
|
||||||
*/
|
*/
|
||||||
async touchMove(x: number, y: number): Promise<void>;
|
async touchMove(x: number, y: number): Promise<void>;
|
||||||
async touchMove(): Promise<void> {
|
async touchMove(): Promise<void> {
|
||||||
|
Loading…
Reference in New Issue
Block a user