Skip to content

Error on creating new TouchEvent using emulated touch event #18

@IanBellomy

Description

@IanBellomy

Attempting to create a new TouchEvent using the provided Event as a TouchEventInit dictionary results in an error:

ex.

document.body.addEventListener("touchstart",(e)=>{			
    document.body.dispatchEvent(new TouchEvent("touchmove",e))
})		

... Failed to construct 'TouchEvent': Failed to convert value to 'Touch'....

I think this is expected based on the described test failures, but this may be a not-uncommon use case, so I thought I'd log it.

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