Skip to content

Commit

Permalink
docs: fix drag and drop docs (#7617)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok committed Oct 2, 2021
1 parent 044865e commit 327282e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/common/Input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ export class Mouse {
/**
* Dispatches a `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> {
await this._client.send('Input.dispatchDragEvent', {
Expand All @@ -522,6 +523,7 @@ export class Mouse {
/**
* Dispatches a `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> {
await this._client.send('Input.dispatchDragEvent', {
Expand All @@ -537,9 +539,6 @@ export class Mouse {
* Performs a dragenter, dragover, and drop in sequence.
* @param target - point to drop on
* @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> {
await this._client.send('Input.dispatchDragEvent', {
Expand Down

0 comments on commit 327282e

Please sign in to comment.