Skip to content

Joystick appears invisible when immediately cloned from the repository #42

@denesh-globotix

Description

@denesh-globotix

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions