v1.0.0 (Wed, June 26, 2024)
## ✨ New Features
- [`a5464f1`](https://github.com/omt-tech/react-joystick-component/commit/a5464f1) add semantic release gitmoji - add semantic release gitmoji
This will automate releases and is pretty as all hell
- [`9016023`](https://github.com/omt-tech/react-joystick-component/commit/9016023) ensure control plane is circular - ensure control plane is circular
- [`e23bd69`](https://github.com/omt-tech/react-joystick-component/commit/e23bd69) use button for joystick closes closes #19 - use button for joystick closes closes #19
(Issues: #19
)
- 7a15cac
Add sticky joystick - Add sticky joystick
The joystick will now stay in place if sticky is set to true
- [`a8d4482`](https://github.com/omt-tech/react-joystick-component/commit/a8d4482) Allow images for joystick and base - Allow images for joystick and base
- [`30cc0ba`](https://github.com/omt-tech/react-joystick-component/commit/30cc0ba) Add cursor following - Add cursor following
- [`3d23b7e`](https://github.com/omt-tech/react-joystick-component/commit/3d23b7e) Add square shape and ability to revert to old CP - Add square shape and ability to revert to old CP
- [`9aafa1c`](https://github.com/omt-tech/react-joystick-component/commit/9aafa1c) add distance percentile to IJoystickUpdateEvent - add distance percentile to IJoystickUpdateEvent
- [`fed26bc`](https://github.com/omt-tech/react-joystick-component/commit/fed26bc) add minDistance, closes #7 - add minDistance, closes #7
(Issues: #7
)
- 045d1af
Support multiple touches, fixes elmarti#34 - Support multiple touches, fixes elmarti#34
previously we listened for a singleton window event for mouseup/touchend. For touchend we now store the touch.identifier to allow us to identify the touchmove and touchend events, so that we can treat them diffrently per component instance
(Issues: #34
)
- 92b4020
add stick size override - add stick size override
- [`eb0191a`](https://github.com/omt-tech/react-joystick-component/commit/eb0191a) add ability to lock movement to x & y axes - add ability to lock movement to x & y axes
- [`6ca2b60`](https://github.com/omt-tech/react-joystick-component/commit/6ca2b60) ⚗️ add ability to override position. - ⚗️ add ability to override position.
This current implementation allows the user to override the position. The state can be stored in a parent component and override the internal state of the joystick. Closes elmarti#40, Closes elmarti#58
(Issues: #40
#58
)
## 🐛 Bug Fixes
- [`fab12ae`](https://github.com/omt-tech/react-joystick-component/commit/fab12ae) Improve typings use es6 hypotenuse calculation - Improve typings use es6 hypotenuse calculation
- [`5946ed6`](https://github.com/omt-tech/react-joystick-component/commit/5946ed6) Cleanup events for followCursor - Cleanup events for followCursor
- [`a3caee4`](https://github.com/omt-tech/react-joystick-component/commit/a3caee4) improve startMove logic - improve startMove logic
it was still possible to click the joystick whilst following the cursor, this fixes that, but also removes a nest from the startMove method
- [`a7d0c94`](https://github.com/omt-tech/react-joystick-component/commit/a7d0c94) fix non-sticky sticks sticking - fix non-sticky sticks sticking
- [`5dc68c1`](https://github.com/omt-tech/react-joystick-component/commit/5dc68c1) show bundle size - show bundle size
- [`4ba9106`](https://github.com/omt-tech/react-joystick-component/commit/4ba9106) fix tsfailure - fix tsfailure
- [`8b068aa`](https://github.com/omt-tech/react-joystick-component/commit/8b068aa) fix tsfailure - fix tsfailure
- [`f1fc49d`](https://github.com/omt-tech/react-joystick-component/commit/f1fc49d) fix tsfailure - fix tsfailure
- [`1810cd4`](https://github.com/omt-tech/react-joystick-component/commit/1810cd4) fix tsfailure - fix tsfailure
- [`c37905b`](https://github.com/omt-tech/react-joystick-component/commit/c37905b) trigger release of #43 - trigger release of #43
(Issues: #43
)
- 442d7ff
👷♂️ publish raw files in package, fixes: elmarti#46, elmarti#39 - 👷♂️ publish raw files in package, fixes: elmarti#46, elmarti#39
(Issues: #46
#39
)
- 790817a
fix sticky end position - fix sticky end position
- [`d6a952b`](https://github.com/omt-tech/react-joystick-component/commit/d6a952b) remove distance ratio - remove distance ratio
- [`f0ff7d3`](https://github.com/omt-tech/react-joystick-component/commit/f0ff7d3) fix broken build - fix broken build
- [`48eb8b4`](https://github.com/omt-tech/react-joystick-component/commit/48eb8b4) fix requestAnimationFrame memory lead - fix requestAnimationFrame memory lead
- [`385d089`](https://github.com/omt-tech/react-joystick-component/commit/385d089) fix callback naming - fix callback naming
## 💥 Breaking Changes
- [`ce492c5`](https://github.com/omt-tech/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
- [`4858a0a`](https://github.com/omt-tech/react-joystick-component/commit/4858a0a) Standardise param naming - Standardise param naming
- [`129fd6d`](https://github.com/omt-tech/react-joystick-component/commit/129fd6d) use pointer events - use pointer events
Using pointer events standardises a lot of the code and allows dragging to continue outside of the viewport. closes elmarti#26 closes elmarti#35
(Issues: #26
#35
)
- 7012fb4
🐛 trigger breaking release - 🐛 trigger breaking release
PR didn't include gitmoji - This is definitely how the joystick should work, however the previous version didn't work this way for varying sizes
- [`9865683`](https://github.com/omt-tech/react-joystick-component/commit/9865683) 🐛 fix ratio not working for standard joystick - 🐛 fix ratio not working for standard joystick