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
Div inside another div, the mouse interaction with the constellation has a x offset
The text was updated successfully, but these errors were encountered:
I am also facing the issue.
Sorry, something went wrong.
I also discovered this problem. You can replace the two lines of code as follows so the mouse interaction is properly located.
// Mouse event listeners this.canvas.addEventListener( "mousemove", function(e) { this.mouseParticle.x = // e.clientX - this.canvas.offsetLeft; << replace this e.clientX - this.canvas.getBoundingClientRec().left; this.mouseParticle.y = // e.clientY - this.canvas.offsetTop; << replace this e.clientY - this.canvas.getBoundingClientRec().top; }.bind(this) );
No branches or pull requests
Div inside another div, the mouse interaction with the constellation has a x offset
The text was updated successfully, but these errors were encountered: