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

A strange behaviour of the cursor when editing a string #350

Closed
RinaVladimyrovna opened this issue Oct 9, 2017 · 6 comments
Closed

A strange behaviour of the cursor when editing a string #350

RinaVladimyrovna opened this issue Oct 9, 2017 · 6 comments

Comments

@RinaVladimyrovna
Copy link

Expected behavior

  • The cursor keep its position after a previous letter was erased

Actual behavior

  • The cursor hops some letters to the end of the editing string after every erased letter

Steps to reproduce

  • Print a relatively long string
  • Place the cursor somewhere in the middle of the string
  • Start erasing letters
  • Watch cursor behaviour

Browser and OS

  • Safari 10/602.1
  • iOS 10.3.1
@jcubic
Copy link
Owner

jcubic commented Oct 9, 2017

I'm not able to reproduce in Safari 9 (the only one I can test), does it's still an issue in 1.9.0?

@RinaVladimyrovna
Copy link
Author

Unfortunately, it is hard to tell, because there is no opportunity to place cursor in the middle of the string since 1.9.0. It appears only at the end of the line now.

Practically, there is still an additional cursor to the very left of the active line.

@jcubic
Copy link
Owner

jcubic commented Oct 10, 2017

you can change cursor position using click (but the terminal need to have focus) or using arrow keys.

that cursor on the left (in hidden textarea) was showing up only in IE I've fixed that in devel branch (css update).

@RinaVladimyrovna
Copy link
Author

Thank you for your reply.
I have no keyboard or mouse for my iPad right now unfortunately, so I have no opportunity to check it.
But I assure you, there is the second cursor in 1.9.0 on iPad's Safari.

jcubic added a commit that referenced this issue Oct 10, 2017
@jcubic
Copy link
Owner

jcubic commented Oct 10, 2017

Finally instaled Xcode on my MacOS that run in VM and using Simulator I've tested.

I've created beter cursor hiding and it seems it work for Android so it's fine, the fix is in devel branch in css file.

@jcubic
Copy link
Owner

jcubic commented Oct 13, 2017

Didn't mention you can test devel branch in this pen https://codepen.io/jcubic/pen/LxgJQG

@jcubic jcubic closed this as completed Nov 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants