-
Notifications
You must be signed in to change notification settings - Fork 54
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
Double clicking on a word selects 2 words #50
Comments
Which OS are you using now? I'm using Mac + Chrome / Firefox, and the double-click on a word always select the word itself. I'm not quite sure how it works on Windows + Chrome / Firefox |
The behavior of double-clicking on a word is OS by OS. Here are some discussions about how to select one word without the trailing space on Windows platform: |
I am using Windows 10 indeed, but this is the only editor doing this. On any other editor/website/app, double clicking selects only 1 word without the trailing spaces, that is why I assume there is something weird about anafora's behavior. I checked with other computers (still on Windows) and I get the same. |
Got you. One of our annotator reports the same issues. I'm thinking that this issue may be due to |
The trailing space is the problem here. Double click selects the word plus space, then the function snapSelectionToWord() extends this to include the following word as well. |
The documentation states :
When you double-click on a word, most browsers will expand the selection to include the entire word.
This works on Edge, but on Firefox or Chrome double-clicking on a word selects that word plus the following word, which is not very ergonomic. It would be nice to have a fix on that.
The text was updated successfully, but these errors were encountered: