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

Add "touch" cascade #880

Open
quantizor opened this issue Mar 23, 2022 · 1 comment
Open

Add "touch" cascade #880

quantizor opened this issue Mar 23, 2022 · 1 comment
Labels
enhancement New feature or request needs specification The desired behavior is not defined yet

Comments

@quantizor
Copy link

Problem description

The library provides a nice and ergonomic way to handle mouse and keyboard-based interactions, but currently there is no support for touch.

Suggested solution

Ideally would love a symmetric API to .click() that triggers the appropriate event cascade for a hypothetical touch user. Perhaps it can be introduced in a piecemeal fashion, since covering the entirety of touch interactions is a bit daunting.

Additional context

No response

@quantizor quantizor added enhancement New feature or request needs assessment This needs to be looked at by a team member labels Mar 23, 2022
@ph-fritsche
Copy link
Member

Please have a look at https://testing-library.com/docs/user-event/pointer#moving-a-pointer.

Adding the appropriate touch events is one of the TODOs:

// TODO: touch...

A PR adding the correct behavior or research on what exactly we should implement would be very much welcome.

If the behavior is completely available per pointer API, we can look into which convenience APIs we might want to add for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs specification The desired behavior is not defined yet
Projects
None yet
Development

No branches or pull requests

2 participants