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

Joystick appears invisible when immediately cloned from the repository #42

Open
denesh-globotix opened this issue Dec 14, 2021 · 0 comments

Comments

@denesh-globotix
Copy link

denesh-globotix commented Dec 14, 2021

Thank you for such a wonderful wrapper for nipplejs. I am used to working with this library in typical html and it's great to be able to use the same set of features with ReactJS. Would just like to point out that when I first cloned the package the color field was missing from the example snippet provided in the README.md and so the joystick appeared invisible.
This is likely due to the color field not being set.

image

Adding the color field into options fixes this.

          options={{ 
            mode: 'static', 
            position: { top: '50%', left: '50%' }, 
            color: 'red',
          }}

Thanks once again for this package!

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

No branches or pull requests

1 participant