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

Function getClientRectAtPosition produces incorrect results #1164

Open
acornmakes opened this issue Jun 26, 2024 · 0 comments
Open

Function getClientRectAtPosition produces incorrect results #1164

acornmakes opened this issue Jun 26, 2024 · 0 comments

Comments

@acornmakes
Copy link

When using the function getClientRectAtPosition if the caret position is at the end of a line, the results return the location of the start of the next line on Chromium based browsers. (Oddly, Firefox does not appear to have the issue.)

Steps to Reproduce

I've created a simple demonstration here:

https://codepen.io/awiredprairie/pen/jOoXGoz

Details
  • Trix version: 2.1.1
  • Browser name and version: Chrome, Edge (Version 125.0.2535.85)
  • Operating system: Windows 11
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