Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

joystick with other elements #175

Open
EditedCocktail opened this issue Feb 11, 2022 · 2 comments
Open

joystick with other elements #175

EditedCocktail opened this issue Feb 11, 2022 · 2 comments
Labels

Comments

@EditedCocktail
Copy link

EditedCocktail commented Feb 11, 2022

When joystick touched, touch events on other elements dont work.

To Reproduce

  1. Add joystick
  2. Add button
  3. Press joystick on mobile
  4. Press button while holding joystick
  5. Ontouch button event wont work

Smartphone

  • Device: Samsung Galaxy A51
  • OS: Android 11
  • Browser: Chrome
  • Version: last
@lancety
Copy link

lancety commented May 29, 2022

I guess your button is using onClick event. instead click, try onPointerDown onPointerUp.
I have same issue, onCLick wont trigger if a stick is active, but pointer events are working, btw, my ui component is based on react.

@Saqib92
Copy link

Saqib92 commented Jan 25, 2023

I have almost same issue in Angular.
When holding joystick and click any other button joy stick loses focus and goes back to centre.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants