How to set pointer width/height #1118
Unanswered
snowystinger
asked this question in
Q&A
Replies: 1 comment
-
I would expect this to be in user.setup's pointerMap, but it doesn't appear to propagate through and the type for each pointer is https://github.com/testing-library/user-event/blob/main/src/system/pointer/shared.ts#L4 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I'm trying to match the events we get in the browser, and with user.click, I get a pointer event with width and height both 0. However, when I click in Chrome/Safari/Firefox, I get width and height of 1. I can't quite figure out the right options or parameters to set in order to accomplish this. I think it should be possible given that the pointer init event takes a width and height as arguments.
https://github.com/testing-library/user-event/blob/main/src/event/createEvent.ts#L211
Beta Was this translation helpful? Give feedback.
All reactions