Skip to content
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

Text editor extremely glitchy on mobile (Android) #476

Open
Sergio0694 opened this issue Mar 20, 2020 · 5 comments
Open

Text editor extremely glitchy on mobile (Android) #476

Sergio0694 opened this issue Mar 20, 2020 · 5 comments

Comments

@Sergio0694
Copy link

Sergio0694 commented Mar 20, 2020

Hello, I've been using sharplab.io on mobile for a while now, and I've noticed it's very difficult (and annoying) to use it there unfortunately, as the text editor seems extremely glitchy.
This is due to it doing a few different things pretty often:

  • Have the cursor jump back, resulting in you writing a word with jumbled up letters
  • Randomly deleting characters (eg. you'd type bool a and it'd delete the a identifier)
  • Have the cursor get stuck between lines when quickly deleting characters
  • Have the text editor type your code back again after deleting it (?!)

Here's a GIF I recorded that shows the first two issues. You can see the full recording here, which also shows the IL output window as well as the individual keys being pressed on the keyboard.

nHsvIL45W2

And here's another that shows the other two issues:

YgWbgempIq

The text editor is already not perfectly responsive on mobile, but that's secondary, these issues instead really make you have a hard time trying to write some code on it.

Hopefully this is not something too difficult to fix, thank you again for your hard work! 😄

@ashmind
Copy link
Owner

ashmind commented Mar 20, 2020

Thanks for a great report! While I saw similar issues, I am limited to the editor I am using, and might not be able to resolve them. On the positive side, CodeMirror seems to be aware of those (e.g. codemirror/codemirror5#6145) and rewrite done in CodeMirror 6 should resolve them. On the negative side, it's not clear how long CodeMirror 6 work will take.

I'll take a look if I can provide an experimental CodeMirror 6 version as an opt-in, though it might lack some features. If not possible, I might provide just a basic text area as an opt-in.

@Sergio0694
Copy link
Author

Hey @ashmind - thank you for the quick reply!
I wasn't aware those were all already known issues in the code editor you're using, glad to hear they're already being tracked there though and that they should be fixed in the new version. I've seen the new CodeMirror 6 release and looks like it's going to be pretty great especially for mobile, so yeah if it'd be possible to have an opt-in to a preview version of that it would be amazing! 😄

Thank you again for your work on sharplab.io! 🍻

@Sergio0694
Copy link
Author

Hey @ashmind - just saw the update for #477 and tried it out, looks great! 🎉

Any updates on a preview version for the CodeMirror editor v6.0? It's really the last remaining piece of the puzzle that's needed to have sharplab.io work great on mobile as well 😄

@ashmind
Copy link
Owner

ashmind commented May 31, 2020

Sure, you can try it now, but I can promise a lot of bugs:
image

Known issues (likely small subset of total issues):
https://github.com/ashmind/SharpLab/issues?q=is%3Aissue+is%3Aopen+%22cm6+preview%22

@Sergio0694
Copy link
Author

Ah, nice!
Looking forward to seeing how this progresses, thanks again for the good work! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants