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

[troika-three-text] Bad caret positions if last chars: 'fl' #165

Closed
MetaHegemon opened this issue Nov 7, 2021 · 2 comments
Closed

[troika-three-text] Bad caret positions if last chars: 'fl' #165

MetaHegemon opened this issue Nov 7, 2021 · 2 comments

Comments

@MetaHegemon
Copy link

Hello! If last chars of text is 'fl' then last caretPositions is zero.
Look up console of this example: https://codesandbox.io/s/troika-three-text-caretpositions-error-wielp

Cheked in 0.43.1-alpha.0

@lojjic
Copy link
Collaborator

lojjic commented Nov 8, 2021

Good find! That 'fl' is a ligature so it's a single glyph spanning two characters. In most cases the same caretPosition will be copied to both characters, but there's a bug that doesn't do that copying when it's the final glyph. Should be an easy fix. :)

lojjic added a commit that referenced this issue Nov 10, 2021
@lojjic
Copy link
Collaborator

lojjic commented Nov 14, 2021

This has been fixed in version 0.44.0. Thanks for the report!

@lojjic lojjic closed this as completed Nov 14, 2021
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