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

Container div offset causes weird hitbox issues #32

Closed
ablakey opened this issue Jul 18, 2016 · 2 comments
Closed

Container div offset causes weird hitbox issues #32

ablakey opened this issue Jul 18, 2016 · 2 comments
Assignees
Labels

Comments

@ablakey
Copy link

ablakey commented Jul 18, 2016

The div that is created by nipplejs to contain the two circle divs has a very odd offset where the top-left corner is the centre. You can see in the screenshot below via. Chrome. You can also see this in the hosted demos by selecting the element in your browser's developer tools.

The problem is twofold:

  1. It overlaps with other elements, stealing their clicks.
  2. It makes the area that controls the joystick inconsistent.

This bug seems to have been masked by the fact that it isn't evident if you have a large enough area for your joystick to work in.

njs_hitbox

@yoannmoinet
Copy link
Owner

Thanks for reporting this.
I'll look into it later today.

@yoannmoinet yoannmoinet self-assigned this Jul 19, 2016
@yoannmoinet
Copy link
Owner

@ablakey I've pushed a new version 0.6.4

Please, tell me if that fixed your issue.

Thanks.

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