mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs: fix drag and drop docs (#7617)
This commit is contained in:
parent
044865eff7
commit
327282e047
@ -508,6 +508,7 @@ export class Mouse {
|
|||||||
/**
|
/**
|
||||||
* Dispatches a `dragenter` event.
|
* Dispatches a `dragenter` event.
|
||||||
* @param target - point for emitting `dragenter` event
|
* @param target - point for emitting `dragenter` event
|
||||||
|
* @param data - drag data containing items and operations mask
|
||||||
*/
|
*/
|
||||||
async dragEnter(target: Point, data: Protocol.Input.DragData): Promise<void> {
|
async dragEnter(target: Point, data: Protocol.Input.DragData): Promise<void> {
|
||||||
await this._client.send('Input.dispatchDragEvent', {
|
await this._client.send('Input.dispatchDragEvent', {
|
||||||
@ -522,6 +523,7 @@ export class Mouse {
|
|||||||
/**
|
/**
|
||||||
* Dispatches a `dragover` event.
|
* Dispatches a `dragover` event.
|
||||||
* @param target - point for emitting `dragover` event
|
* @param target - point for emitting `dragover` event
|
||||||
|
* @param data - drag data containing items and operations mask
|
||||||
*/
|
*/
|
||||||
async dragOver(target: Point, data: Protocol.Input.DragData): Promise<void> {
|
async dragOver(target: Point, data: Protocol.Input.DragData): Promise<void> {
|
||||||
await this._client.send('Input.dispatchDragEvent', {
|
await this._client.send('Input.dispatchDragEvent', {
|
||||||
@ -537,9 +539,6 @@ export class Mouse {
|
|||||||
* Performs a dragenter, dragover, and drop in sequence.
|
* Performs a dragenter, dragover, and drop in sequence.
|
||||||
* @param target - point to drop on
|
* @param target - point to drop on
|
||||||
* @param data - drag data containing items and operations mask
|
* @param data - drag data containing items and operations mask
|
||||||
* @param options - An object of options. Accepts delay which,
|
|
||||||
* if specified, is the time to wait between `dragover` and `drop` in milliseconds.
|
|
||||||
* Defaults to 0.
|
|
||||||
*/
|
*/
|
||||||
async drop(target: Point, data: Protocol.Input.DragData): Promise<void> {
|
async drop(target: Point, data: Protocol.Input.DragData): Promise<void> {
|
||||||
await this._client.send('Input.dispatchDragEvent', {
|
await this._client.send('Input.dispatchDragEvent', {
|
||||||
|
Loading…
Reference in New Issue
Block a user