Svelte: REPL does not allow user to update REPL on mobile

Created on 8 Aug 2019  路  5Comments  路  Source: sveltejs/svelte

Describe the bug
REPL does not allow user to update REPL on mobile, it keeps deleting the typed character.

To Reproduce
Was on my latest Xiaomi trying to edit https://svelte.dev/repl/b59cb474d14941f9bcfd7533214d2325?version=3.7.1

As soon as I type a character the editor deletes it.

Expected behavior
characters not deleted

site bug

Most helpful comment

I have also noticed this behaviour on mobile actually, so I can confirm this.

All 5 comments

I have also noticed this behaviour on mobile actually, so I can confirm this.

I'm really not sure what there is to do about this other than to wait for CodeMirror 6 and hope it fixes our problems.

I suppose it probably wouldn't hurt to update to the latest version of CodeMirror 5. You never know.

Works fine for me

Application version
Brave 1.1.2, Chromium 75.0.3770.143

I can confirm the editor on svelte.dev is unusable on mobile, especially if you try to add code on another line it disappears automatically as soon as you press the spacebar.

Whilst this is a genuine issue, it is better focused on codemirror, since that's what the underlying site uses. I note at the bottom of the codemirror site https://codemirror.net/

"Support for modern mobile browsers is experimental. Recent versions of the iOS browser and Chrome on Android should work pretty well."

There isn't much we can do here, other than wait for codemirror to improve, so closing this issue in favour of committing improvements to codemirror, and hoping that older mobile browsers slowly phase out!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rob-balfre picture rob-balfre  路  3Comments

lnryan picture lnryan  路  3Comments

Rich-Harris picture Rich-Harris  路  3Comments

mmjmanders picture mmjmanders  路  3Comments

noypiscripter picture noypiscripter  路  3Comments