We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When we calculate the plot position, we use the cursor position on the whole page and not on the client!
We should use "ev.clientY"
The text was updated successfully, but these errors were encountered:
Like that :
//these are some utility functions getMousePosition(ev) { var rect = this.svgEl.getBoundingClientRect(); if (ev.clientX && ev.clientY) return { x: ev.clientX - rect.left, y: ev.clientY - rect.top }; if (ev.targetTouches.length) return { x: ev.targetTouches[0].clientX - rect.left, y: ev.targetTouches[0].clientY - rect.top }; return { x: 0, y: 0 }; //oops? }
Sorry, something went wrong.
No branches or pull requests
When we calculate the plot position, we use the cursor position on the whole page and not on the client!
We should use "ev.clientY"
The text was updated successfully, but these errors were encountered: