Emulation.setTouchEmulationEnabledEnables touch on platforms which do not support them.
| Name | Type | Description |
|---|---|---|
enabled | boolean | Whether the touch event emulation should be enabled. |
maxTouchPoints (optional) | integer | Maximum touch points supported. Defaults to one. |
{
"id": 1,
"method": "Emulation.setTouchEmulationEnabled",
"params": {
"enabled": true
}
}
{
"id": 1,
"result": {}
}
const result = await send('Emulation.setTouchEmulationEnabled', {"enabled": true});
console.log(result);