Touch events are slow and inaccurate in chrome for Android with wasm-gc enabled.
Describe the bug Tried this link https://zal.im/wasm/creative/ in my pixel 7 with chrome browser 110 and wasm garbage collection enabled. While the circles are properly rendered on the screen, the touch events to move the slides and switch the toggles are really sloppy, many times missing/lossing the touch event itself.
Affected platforms
- Web (K/WASM) - Canvas based API and wasm target on chrome for Android.
Versions Not sure of the versionn used to build that web. For sure is kotlin 1.8.20 beta because is the only one with the new wasm compiler backend.
To Reproduce Open the link above in an Android phone with chrome greater than 110 and with webassembly garbage collection enabled. Try to move the sliders or switch the toggles. Nothing happens or the move is too abrupt. Expected behavior The web should consume the touch events smoothly, sliders should follow the finger pointer and toggles should switch accordingly.
Thank you for giving it a try :) You've pointed out valid issues. Touch events are not cosumed by compose-web-canvas at all, so it's a TODO item. As for slow UI when switching the toggles or clicking the slider, it's something we'll have to figure out.
Maybe this could help. [1.6.10-beta02][Android] Compose Multiplatform isn't working on mobile web
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.