Skip to content

Implement Touch #2152

@jfirebaugh

Description

@jfirebaugh

Basic info:

  • Node.js version: v8.9.3
  • jsdom version: 11.6.2

Minimal reproduction case

const { JSDOM } = require("jsdom");
const dom = new JSDOM();
new dom.window.Touch({identifier: '', target: dom.window});

This throws "TypeError: dom.window.Touch is not a constructor."

How does similar code behave in browsers?

It works: http://jsbin.com/tavariviju/edit?js,console

Standard: https://w3c.github.io/touch-events/#touch-interface

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions