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

Issue with multiple joysticks #32

Open
Xamyrz opened this issue Jan 17, 2022 · 0 comments
Open

Issue with multiple joysticks #32

Xamyrz opened this issue Jan 17, 2022 · 0 comments
Assignees
Labels

Comments

@Xamyrz
Copy link

Xamyrz commented Jan 17, 2022

Describe the bug
the "touchend" event should be listening to "canvas" rather than "document", as in my webapp, when i want to have 2 joysticks, and I let go of one of them, the "touchend" event gets fired on both of the joysticks.

To Reproduce
Steps to reproduce the behavior:

  1. add 2 joysticks
  2. touch 2 at the same time
  3. let go of one
  4. "touchend" will be fired for both joysticks, rather than just the one.

Expected behavior
touchend fired on the joystick that actually initialised it, rather than both

Screenshots
ezgif-5-5020b8eb2b

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6] ALL DEVICES
  • OS: [e.g. iOS8.1] ALL OS's
  • Browser [e.g. stock browser, safari] ALL BROWSERS
  • Version [e.g. 22] ALL

Additional context
None

@bobboteck bobboteck self-assigned this Mar 16, 2022
@bobboteck bobboteck added the bug label Mar 16, 2022
ftylitak added a commit to ftylitak/JoyStick that referenced this issue Jun 28, 2022
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

2 participants