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

Improve warning regarding movementX and movementY #31651

Merged
merged 4 commits into from
Jan 15, 2024
Merged

Conversation

trusktr
Copy link
Contributor

@trusktr trusktr commented Jan 11, 2024

Description

Motivation

Using movementX in a cross-browser setting is not going to work well. Suggest for people to calculate the delta themselves using client values.

Additional details

Related issues and pull requests

@trusktr trusktr requested a review from a team as a code owner January 11, 2024 06:48
@trusktr trusktr requested review from Elchi3 and removed request for a team January 11, 2024 06:48
@github-actions github-actions bot added the Content:WebAPI Web API docs label Jan 11, 2024
Copy link
Contributor

github-actions bot commented Jan 11, 2024

Preview URLs

External URLs (2)

URL: /en-US/docs/Web/API/MouseEvent/movementX
Title: MouseEvent: movementX property


URL: /en-US/docs/Web/API/MouseEvent/movementY
Title: MouseEvent: movementY property

(comment last updated: 2024-01-11 07:09:18)

Copy link
Member

@bsmth bsmth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice improvement, thank you! 👍🏻

@bsmth bsmth merged commit a4d1cfe into mdn:main Jan 15, 2024
7 checks passed
dipikabh pushed a commit to dipikabh/content that referenced this pull request Jan 17, 2024
* Improve warning regarding movementX and movementY

* improve the warning for movementY as well

* update movementX warning to ref screen* values

* update movementY to ref screen* values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants