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

fix(crosshair): use offsetX/Y instead of clientX/Y #128

Merged
merged 1 commit into from
Mar 28, 2019

Conversation

markov00
Copy link
Member

Summary

This commit correct the behaviour of using clientX and clientY instead of offsetX and offsetY. The
previous behavious used the synthetic position of the mouse cursor, this commit change it to use the
native event value that already take care of the border box.

fix #123

Mar-27-2019 17-18-18

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

  • This was checked for cross-browser compatibility, including a check against IE11
  • Proper documentation or storybook story was added for features that require explanation or tutorials
  • Unit tests were updated or added to match the most common scenarios
  • Each commit follows the convention

This commit correct the behaviour of using clientX and clientY instead of offsetX and offsetY. The
previous behavious used the synthetic position of the mouse cursor, this commit change it to use the
native event value that already take care of the border box.

fix elastic#123
@markov00 markov00 requested a review from emmacunningham March 27, 2019 16:19
@markov00 markov00 added this to the 7.1 milestone Mar 27, 2019
Copy link
Contributor

@emmacunningham emmacunningham left a comment

Choose a reason for hiding this comment

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

Tested locally & code LGTM

@markov00 markov00 merged commit 7c1155f into elastic:master Mar 28, 2019
@markov00 markov00 deleted the fix-crosshair-onscroll branch March 28, 2019 13:33
markov00 pushed a commit that referenced this pull request Mar 28, 2019
## [3.4.4](v3.4.3...v3.4.4) (2019-03-28)

### Bug Fixes

* **crosshair:** use offsetX/Y instead of clientX/Y ([#128](#128)) ([7c1155f](7c1155f)), closes [#123](#123)
@markov00
Copy link
Member Author

🎉 This PR is included in version 3.4.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Mar 28, 2019
@markov00 markov00 removed this from the 7.1 milestone Apr 1, 2019
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Issue released publicly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crosshair works incorrectly after page scroll
2 participants