-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
Cursor displayed outside editor on iOS #459
Comments
This is fine on Chrome on Android. The cursor remains at the end of the line but is not visible. Typing scrolls to reveal the cursor. |
This is a Mobile Safari bug—it always draw the cursor, even when it is in a position that's scrolled out of view. You'll see the same in a plain contentEditable element. I don't think there's anything CodeMirror can do about this. |
@marijnh any updates? is there a workaround? |
I am not aware of any workaround for this. It may be worth checking if |
Nope, that doesn't help either. It seems iOS Safari simply will not hide the cursor, regardless of whether it should be clipped by some parent node, and there is unfortunately little we can do about that. It seems that the bug only occurs when the scrollable element is a parent of the editable element---if the element itself it scrollable, the browser does manage to clip the cursor. Unfortunately, making the scrollable element editable would cause a lot of problems in CodeMirror (users could put the cursor in the gutter etc), so that's not really an option. I've stopped reporting bugs to Apple since they required a registered developer Apple ID to even be able to do that, but if someone wants to try and report this again, there's a slim chance someone will eventually look at it. |
Found while investigating #457 but doesn't require use of the spacebar cursor movement feature so I've raised it separately.
The text was updated successfully, but these errors were encountered: