compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Touch events are slow and inaccurate in chrome for Android with wasm-gc enabled.

Open pablichjenkov opened this issue 2 years ago • 2 comments

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.

pablichjenkov avatar Feb 22 '23 03:02 pablichjenkov

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.

eymar avatar Feb 23 '23 10:02 eymar

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Aug 26 '24 13:08 okushnikov