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

Inner text node position should follow cursor position #43

Open
rparrett opened this issue Mar 26, 2024 · 0 comments
Open

Inner text node position should follow cursor position #43

rparrett opened this issue Mar 26, 2024 · 0 comments

Comments

@rparrett
Copy link
Owner

rparrett commented Mar 26, 2024

To reproduce:

  • cargo run --example basic
  • Type hello there
  • Press left-arrow repeatedly until the cursor disappears

This reveals another issue with the janky zero-width cursor setup when left-arrow is pressed for the first time.

Roughly, we need to

  • Get the relative cursor position from TextLayoutInfo
  • Offset the inner text node so that the cursor is always visible
@rparrett rparrett changed the title Cursor disappears when moved left when contents are wider than container Inner text node position should follow cursor position Mar 26, 2024
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

1 participant