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

Sometimes the stars are directly under the cursor #2

Open
lukehaas opened this issue Nov 9, 2017 · 1 comment
Open

Sometimes the stars are directly under the cursor #2

lukehaas opened this issue Nov 9, 2017 · 1 comment
Labels

Comments

@lukehaas
Copy link

lukehaas commented Nov 9, 2017

This problem causes hovered elements to flicker and for clicks to occasionally go unregistered.

The problem is caused by the way sideX and sideY are generated. Because the jstar_rand function is given a range of -1 to 1, you end up with a result of -1, 0, or 1, when what you really want is -1 or 1. When this number is zero the star position will be identical to the mouse position.

@aprokopenko
Copy link
Collaborator

Hi Luke,
Thanks for your feedback. Would be great if you can make a Pull Request for this update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants