react-nipple icon indicating copy to clipboard operation
react-nipple copied to clipboard

Joystick appears invisible when immediately cloned from the repository

Open denesh-globotix opened this issue 3 years ago • 0 comments

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!

denesh-globotix avatar Dec 14 '21 17:12 denesh-globotix