Skip to content

Emulate support of touch events #1028

@sadym-chromium

Description

@sadym-chromium

Touch events specification defines Web API for touch events, including observable GlobalEventHandlers, allowing web application to identify if the user agent provides touch input.

We propose to add a command emulation.setTouchEventsEnabled, analog of CDP Emulation.setTouchEmulationEnabled with the following interface:

emulation.SetTouchEmulationEnabled = (
  method: "emulation.setTouchEmulationEnabled",
  params: emulation.SetTouchEmulationEnabledParameters
)

emulation.SetTouchEmulationEnabledParameters = {
  enabled: bool,
  ? maxTouchPoints: js-uint
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions