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

Make joystick visible by default in semi mode #47

Closed
praveenaj opened this issue May 10, 2017 · 4 comments
Closed

Make joystick visible by default in semi mode #47

praveenaj opened this issue May 10, 2017 · 4 comments

Comments

@praveenaj
Copy link

I want to show joystick once plugin is initialized, not on click. I tried static mode but in that I want just the joystick to move and keep outer circle stationary as it is now. I'd like to have your recommendations. Thanks

@yoannmoinet
Copy link
Owner

yoannmoinet commented May 10, 2017

I'm not sure I understand, this is what static does.
Have you tried the examples in static mode ? http://yoannmoinet.github.io/nipplejs/#demo

Oh wait, you want it to happen in semi mode... my bad, didn't catch that. Let me check.

@praveenaj
Copy link
Author

@yoannmoinet Yes, in other words static mode with a moving joystick.

@yoannmoinet
Copy link
Owner

So, I don't have much free time at the moment. So if you really need this, please feel free to take a shot at it and submit a PR, I'll be more than happy to review it.

@praveenaj
Copy link
Author

Sorry for the confusion. It turns out I have missed position property when I tested static mode. This made the joystick not moveable. All good when I set 50%-50% for left and top.
Thanks for creating this awesome library.

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