elmarti / react-joystick-component

Tiny, multitouch, component driven joysticks in react
MIT License
86 stars 27 forks source link

Adjustable stickSize as the size of the Joystick base #38

Closed AYOKINYA closed 1 year ago

AYOKINYA commented 2 years ago

Is your feature request related to a problem? Please describe.

I tried to reduce stickSize, but soon found out stickSize isn't customizable but only dependent on baseSize.

const stickSize = `${this._baseSize / 1.5}px`;

Describe the solution you'd like

I'd be possible to adjust stickSize if it's passed as a prop to the joystick component, just as the size prop.

ex)

<Joystick size={100} stickSize={10} /> 

Describe alternatives you've considered

Additional context

This joystick component would be more flexible if users can handle more style properties on the stick and base.

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 4.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: