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

Every time I move the Joystick on Chrome on Android I get joy.js:163 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080 #27

Closed
artisticfox8 opened this issue Oct 16, 2021 · 4 comments

Comments

@artisticfox8
Copy link

joy.js:163 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080
onTouchMove @ joy.js:163

This happens every time I move the joystick.
Snímek obrazovky 2021-10-16 130644

@artisticfox8
Copy link
Author

This is from the USB Chrome Devtools. To launch the file on Android on localhost:8000 I use the Termux app and the python3 -m http.server command

@artisticfox8
Copy link
Author

Maybe try the second answer fromhttps://stackoverflow.com/questions/42101723/unable-to-preventdefault-inside-passive-event-listener
Quoting the page:

See this blog post. If you call preventDefault on every touchstart then you should also have a CSS rule to disable touch scrolling like

 .sortable-handler {
   touch-action: none;
 }

artisticfox8 added a commit to artisticfox8/JoyStick that referenced this issue Oct 16, 2021
@artisticfox8
Copy link
Author

@bobboteck Will you merge this fix?

@bobboteck bobboteck mentioned this issue Dec 21, 2021
@bobboteck
Copy link
Owner

Thanks for the suggestion, the patch was now implemented

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

No branches or pull requests

2 participants