elmarti / react-joystick-component

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

Releasing the cursor outside of the user agent window leads to stuck joystick #35

Closed elmarti closed 2 years ago

elmarti commented 2 years ago

Describe the bug Releasing the cursor outside of the user agent window leads to stuck joystick To Reproduce Steps to reproduce the behavior:

Expected behavior Releasing the mouse outside of the browser window stops the interaction with the joystick

Potential solution https://developer.mozilla.org/en-US/docs/Web/API/Element/setPointerCapture

github-actions[bot] commented 2 years ago

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

The release is available on:

Your semantic-release bot :package::rocket:

elmarti commented 2 years ago

Write up - https://medium.com/@elmarti/farewell-mouse-touch-events-welcome-pointer-events-db36cee48a8a