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

[BUG] lockX / lockY don't lock the angle #111

Closed
popoleeMaster opened this issue Jun 26, 2019 · 1 comment
Closed

[BUG] lockX / lockY don't lock the angle #111

popoleeMaster opened this issue Jun 26, 2019 · 1 comment

Comments

@popoleeMaster
Copy link

So I made a project, where i locked my nipple into x / y

    this.joystickManager = nipplejs.create({
      zone : this.joystick.nativeElement,
      position: {left: '50%', top: '50%'},
      mode: 'semi',
      lockX: true
    });

it works nice in the HTML, but the angle/radians are still giving out direction including X and Y.

(demo)
https://stackblitz.com/edit/angular-fazjcf

if the joystick is locked, the angle should also be locked

@yoannmoinet
Copy link
Owner

I see, thanks for the report, I'll check it out once I have some time.

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

No branches or pull requests

2 participants