Releases: elmarti/react-joystick-component
Releases · elmarti/react-joystick-component
2.1.0
2.0.0
v2.0.0 (Fri, January 07, 2022)
## ✨ New Features
- [`a5464f1`](https://github.com/elmarti/react-joystick-component/commit/a5464f1) add semantic release gitmoji - add semantic release gitmoji
This will automate releases and is pretty as all hell
## 💥 Breaking Changes
- [`ce492c5`](https://github.com/elmarti/react-joystick-component/commit/ce492c5) upgrade deps, move react/dom to peerDependencies - upgrade deps, move react/dom to peerDependencies
Long time coming, had to reimplement the storybook library, seems to be working as before
Fix y direction value
Add "disabled" prop
It is now possible to prevent usage of the joystick using the disabled
prop. This doesn't add any styles to the joystick, but adds 2 classes - joystick-disabled
and joystick-base-disabled
.
Add keywords to package.json
No additional functionality or code changes, simply updated the package meta data to make it easier to find.
Add touch support
Component is now usable on both touch and hybrid devices.
Lock stick down
In order to prevent the stick getting lost and to allow smoother usage, 2 things have happened
- the
dragmove
event handlers are bound to the document, rather than the stick, this makes for smooth usage and the ability to control it after the cursor has left the joystick base - the joystick x,y coordinates are limited to half the size of the joystick, meaning it is bound within it
First release
The first usable release of react-joystick-component.