-
Notifications
You must be signed in to change notification settings - Fork 82
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
Advantages relative to getBoundingClientRect? #43
Comments
@malcolmredheron How do you use |
It does seem to work for selections in normal divs etc. |
Seems like if you were using a |
Ah, ok. I'm using a contenteditable and didn't realize that my approach was specific to that. |
This project sounds great but I can't tell why this is better than
window.getSelection().getRangeAt(0).getBoundingClientRect()
? Are there cases where that fails but this library works?If so, I think that it would be great to cover this in the readme.
The text was updated successfully, but these errors were encountered: