-
Notifications
You must be signed in to change notification settings - Fork 48
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
10ten and Google Translated page don't play well together on hover #1398
Comments
Oh, that's interesting. I think I know what's happening. In Firefox beta/release and Safari, 10ten indicates the looked-up text by selecting it. However, if you select text in a Google translated webpage, Google Translate takes that as a cue to show the source text. You can see that if you turn off 10ten and just click the paragraph. In Firefox Nightly and Chrome and Edge which support the CSS highlight API we can avoid selecting the text by showing a highlight and the problem doesn't reproduce. As a temporary workaround you can either:
I hope Firefox will ship that API soon (tracking bug) but I'm not sure about Safari. Safari have an implementation but it is currently disabled. Until that happens we could try to work around this. Looking at that page, I can see there is are two If I locate one of the Fortunately that appears to be caused by the bubble phase event handler so we could try to catch the |
Brilliant! Thank you so much for the quick reply. Setting |
First thing - this is a wonderful extension I use daily, thank you!
I've noticed that when I read a Google Translated page, for example
...that if 10ten reader is enabled, hovering over text oddly causes the original English text to appear immediately after each translated sentence across the whole document.
With 10ten reader on:
![yes10ten](https://private-user-images.githubusercontent.com/10424962/278675356-72a9737e-fb00-4f1a-bee6-af0b7affb30a.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4ODMwNjEsIm5iZiI6MTczODg4Mjc2MSwicGF0aCI6Ii8xMDQyNDk2Mi8yNzg2NzUzNTYtNzJhOTczN2UtZmIwMC00ZjFhLWJlZTYtYWYwYjdhZmZiMzBhLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDIyNTkyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ5MTI4MWY0YWY1MGM0N2ZjZTNkN2NjZTU1MWIxMWY5MDgwNjkzMDQ5Y2MwYWJjZDdmYzUwOTk3N2I5OGQ4OTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.MqlTb-GKs3sKKaq0TMmUixcPL-9AHAqrKHjJHobEtVA)
With 10ten reader off:
![no10ten](https://private-user-images.githubusercontent.com/10424962/278675467-26f9fc6b-14ef-4410-b4c5-9775721191be.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4ODMwNjEsIm5iZiI6MTczODg4Mjc2MSwicGF0aCI6Ii8xMDQyNDk2Mi8yNzg2NzU0NjctMjZmOWZjNmItMTRlZi00NDEwLWI0YzUtOTc3NTcyMTE5MWJlLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDIyNTkyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU4OWMwY2U0MWZjMDFhYWRhYzZlNDhkNWJkYTk3MDk4OWQwYmUxMjAzZTFkMjEwODA4MGY2NWFjZmY0N2JiN2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.A4FFYWrDsjijfhj1Ec7hp5txEmZtHyj8KkXqFBPafgk)
10ten reader and Google Translate both show a translation modal on hover, so I suspect there is a timing- or HTML element-overlap issue between them which causes the issue.
OS: macOS v12.4
Browser: Firefox v119.0
The text was updated successfully, but these errors were encountered: