ashmind / SharpLab

.NET language playground
https://sharplab.io
BSD 2-Clause "Simplified" License
2.75k stars 202 forks source link

Mobile input broken with GBoard #1258

Open MichalPetryka opened 1 year ago

MichalPetryka commented 1 year ago

Code text editing is broken on mobile when using GBoard. The text field randomly removes, shuffles and duplicates parts of text.

Probably related: https://github.com/go-gitea/gitea/issues/11352 https://bugs.chromium.org/p/chromium/issues/detail?id=812674

ashmind commented 1 year ago

Thanks for reporting! This is something that is impossible to fix in the current editor. However I am working on upgraded editor for a while -- I'll let you know when it is ready to try.

MichalPetryka commented 1 year ago

Thanks for reporting! This is something that is impossible to fix in the current editor. However I am working on upgraded editor for a while -- I'll let you know when it is ready to try.

Since this affects multiple websites, I feel like this should be reported to the GBoard support too. Would you be interested in reporting it there (they may take a report from a website owner more seriously)?

ashmind commented 1 year ago

I believe GBoard is just one example -- CodeMirror 5 was never fully mobile-friendly. There is a lot of (historically justified) complexity in the way CM5 handles things, and not being the author of this library, I don't understand all this complexity well enough to report an issue usefully.

Once CodeMirror 6 integration is out, if it is broken as well, I would be happy to discuss with the author and report if needed.

hamarb123 commented 1 year ago

I doubt this has anything to do with GBoard doing something wrong - I use Samsung Keyboard and have always had this issue on mobile.

Joe4evr commented 1 year ago

I've also seen text moving around/duplicated/etc on mobile and I use SwiftKey.