puppeteer/new-docs/puppeteer.protocol.input.emulatetouchfrommouseeventrequest.md

27 lines
2.2 KiB
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Protocol](./puppeteer.protocol.md) &gt; [Input](./puppeteer.protocol.input.md) &gt; [EmulateTouchFromMouseEventRequest](./puppeteer.protocol.input.emulatetouchfrommouseeventrequest.md)
## Protocol.Input.EmulateTouchFromMouseEventRequest interface
<b>Signature:</b>
```typescript
export interface EmulateTouchFromMouseEventRequest
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [button](./puppeteer.protocol.input.emulatetouchfrommouseeventrequest.button.md) | [MouseButton](./puppeteer.protocol.input.mousebutton.md) | Mouse button. Only "none", "left", "right" are supported. |
| [clickCount](./puppeteer.protocol.input.emulatetouchfrommouseeventrequest.clickcount.md) | [integer](./puppeteer.protocol.integer.md) | Number of times the mouse button was clicked (default: 0). |
| [deltaX](./puppeteer.protocol.input.emulatetouchfrommouseeventrequest.deltax.md) | number | X delta in DIP for mouse wheel event (default: 0). |
| [deltaY](./puppeteer.protocol.input.emulatetouchfrommouseeventrequest.deltay.md) | number | Y delta in DIP for mouse wheel event (default: 0). |
| [modifiers](./puppeteer.protocol.input.emulatetouchfrommouseeventrequest.modifiers.md) | [integer](./puppeteer.protocol.integer.md) | Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). |
| [timestamp](./puppeteer.protocol.input.emulatetouchfrommouseeventrequest.timestamp.md) | [TimeSinceEpoch](./puppeteer.protocol.input.timesinceepoch.md) | Time at which the event occurred (default: current time). |
| [type](./puppeteer.protocol.input.emulatetouchfrommouseeventrequest.type.md) | ('mousePressed' \| 'mouseReleased' \| 'mouseMoved' \| 'mouseWheel') | Type of the mouse event. (EmulateTouchFromMouseEventRequestType enum) |
| [x](./puppeteer.protocol.input.emulatetouchfrommouseeventrequest.x.md) | [integer](./puppeteer.protocol.integer.md) | X coordinate of the mouse pointer in DIP. |
| [y](./puppeteer.protocol.input.emulatetouchfrommouseeventrequest.y.md) | [integer](./puppeteer.protocol.integer.md) | Y coordinate of the mouse pointer in DIP. |