-
Notifications
You must be signed in to change notification settings - Fork 920
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
wasm: Touch
events not received on Android browsers
#1286
Comments
Hm, this is something that completely slipped my mind but I already knew about: ryanisaacg/quicksilver#527. This is because Firefox Mobile apparently doesn't support Touch events, though caniuse seems to indicate a recent release does. Can you share your mobile browser version? |
Firefox 68.2.1. Thought it was newer than that actually! Still looks like it should be supported though. |
I whipped up a quick test: https://jsfiddle.net/au0qxjmo/ Does this print touch events in Firefox? (If it doesn't, I'm curious if it does in Chrome) |
Touch events work in the modern/new Firefox on my android here. I used this as the jsfiddle instead though so I didn't have to hook up a console over USB: |
Hey I think I might be able to help, with some information. It looks like you are talking about different events here without noticing. The The pointer events are supposed to combine mouse and touch events. Ideally, if all browsers implemented them, touch and mouse events could be ignored and only pointer events need to be considered. That's what quicksilver still does as of 0.3.18, I believe. And from skimming through winit code for five minutes I get the impressions it is done the same way. So in my expertise, you can probably get JS |
I believe this issue is now obsolete on master since the web-sys backend supports mouse events as a fallback (and now that the old Firefox is going away). Can this be closed? |
I have been dabbling with touch controls a bit now, through mrk-its/bevy_webgl2. With a simple css property on the canvas ( However... |
See #1673, proper touch events on web is not yet implemented. From what I understand this issue is about the mouse events synthesized from touch and not actual touch events. |
Ah right, this firefox-specific issue is probably not a problem anymore. I got hung up on the title. |
I can't try this myself, but touch on Desktop seems to work just fine. Fixed by #2188. |
Particularly Android Firefox. Example: https://alopex.li/temp/g11/ I tap away and it does nothing. Not sure what touch events would be for if not for this.
Android Chrome seems to turn taps into
WindowEvent::MouseInput
events, but Firefox does not. Not sure how to investigate this further, since I know little about mobile dev and little about webdev and so the Venn diagram of what I know about the two together is vanishingly small.The text was updated successfully, but these errors were encountered: