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

When cursor in on emoji the next character is swallowed in Firefox #579

Closed
jcubic opened this issue May 27, 2020 · 1 comment
Closed

When cursor in on emoji the next character is swallowed in Firefox #579

jcubic opened this issue May 27, 2020 · 1 comment
Labels
Bug resolved if issue is resolved, it will be open until merge with master

Comments

@jcubic
Copy link
Owner

jcubic commented May 27, 2020

Issue summary

If you click on emoji next character is removed

Expected behavior

Command line stay the same

Steps to reproduce

  1. Open devel version of emoji demo https://codepen.io/jcubic/pen/vzGWYj
  2. Click on first emoji

Browser and OS

  • Firefox
@jcubic
Copy link
Owner Author

jcubic commented May 27, 2020

The problem was that ch unit bug for IE detection return true in Firefox because space was not exactly equal 1ch like in Chrome (there was fraction difference, less then 0.0001).

The second bug was with calculation of the character for the bug (it was single character width for emoji that have 2ch), that's probably present in IE (don't have time to check), the code for IE was called in Firefox.

@jcubic jcubic added the resolved if issue is resolved, it will be open until merge with master label May 27, 2020
@jcubic jcubic closed this as completed May 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug resolved if issue is resolved, it will be open until merge with master
Projects
None yet
Development

No branches or pull requests

1 participant