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

[Docs]: Mouse move coordinates are unclear #31567

Closed
glenjamin opened this issue Jul 5, 2024 · 3 comments · Fixed by #31606
Closed

[Docs]: Mouse move coordinates are unclear #31567

glenjamin opened this issue Jul 5, 2024 · 3 comments · Fixed by #31606

Comments

@glenjamin
Copy link

Page(s)

https://playwright.dev/docs/api/class-mouse#mouse-move

Description

It's unclear from the documents whether mouse.move() takes absolute or relative coordinates

In practice it seems to be absolute. It would be helpful to note how to move relative to the current position too

@mxschmitt
Copy link
Member

They are always relative to the top left of your page / page main frame in CSS pixels.

@glenjamin
Copy link
Author

Did the docs get updated on this? I raised this as a docs bug because I thought the mouse docs should make this clearer.

@mxschmitt
Copy link
Member

Updated in #31606.

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

Successfully merging a pull request may close this issue.

2 participants