You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to get touch "clicks" (equivalent of mouse button clicks)? I'm adding and removing map markers based on clicks on the map. That works fine on linux and in a desktop browser with wasm, but doesn't work on a mobile browser. UserEvent doesn't have a touch enum variant and the touches aren't being translated to mouse events either. Winit seems to support it fine as I can interact with egui widgets.
The text was updated successfully, but these errors were encountered:
Hi, @nicolasavru . This definitely needs some testing and investigation. So far I've only tested touch events as far as touch start/move/end goes. AFAIK, browsers generate mouseclick event on a touch click gesture, but I don't know how winit translates it, since there is no ElementState::Click variant there. So, I guess, winit drops all composit events and leaves only the raw ones to make the API work in the same way on all platforms.
If this is so, I would guess that there would be needed a dedicated module (or crate) to handle different touch gestures (click, long click, double-finger click etc.) to translate them into common Galileo UserEvent.
Is there any way to get touch "clicks" (equivalent of mouse button clicks)? I'm adding and removing map markers based on clicks on the map. That works fine on linux and in a desktop browser with wasm, but doesn't work on a mobile browser. UserEvent doesn't have a touch enum variant and the touches aren't being translated to mouse events either. Winit seems to support it fine as I can interact with egui widgets.
The text was updated successfully, but these errors were encountered: