Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on creating new TouchEvent using emulated touch event #18

Open
IanBellomy opened this issue Dec 28, 2018 · 0 comments
Open

Error on creating new TouchEvent using emulated touch event #18

IanBellomy opened this issue Dec 28, 2018 · 0 comments

Comments

@IanBellomy
Copy link

IanBellomy commented Dec 28, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant