ttop32 / MouseTooltipTranslator

Mouseover Translate Any Language At Once - Chrome Extension: PDF Translator, EBOOK, EPUB, OCR, TTS, YOUTUBE DUAL SUBTITLES, GOOGLE DOCS, AI, VIEWER, GMAIL, WRITING, IMAGE, DUAL SUBS, MANGA, HOVER, DICTIONARY, WEBTOON, EDGE, JAPANESE, ENGLISH
MIT License
678 stars 107 forks source link

Issue - Compatibility with View Transitions API #80

Open di4m0nds opened 9 months ago

di4m0nds commented 9 months ago

During transitions between different DOM states facilitated by the View Transitions API, the MouseTooltipTranslator extension fails to provide the expected translation functionality.

Try It Yourself:

To replicate the issue, follow these steps on this page, where I implemented View Transitions:

  1. Navigate to any post on the page using the provided navigation.
  2. Observe that the MouseTooltipTranslator extension fails to translate content during the transition.
  3. Manually refresh the page.
  4. Notice that after the refresh, the translation feature works as expected.

Additional Information:

di4m0nds commented 9 months ago

I'm aware that the View Transitions API is a recent addition, and it could be interesting to give it a spin at a later time. Supported Browsers

marcello-pietrobon commented 9 months ago

I was curious and I went and see.

There's something interesting going on:

If with Mouse Tooltip Translator (MTT) we set Show Tooltip When: Always Translate When: Mouse Over then MTL seems to always work in all your pages, but every time you change a page on your example website, by clicking on some links in it, you need to first refresh/reload the page in order to have MTT working again.

(of course you need to move the mouse a bit first, as said elsewhere that is something that probably doesn't depend on this extension (and I see the need of this both on Windows and on Linux). Using Chromium browser on desktop).

Am I missing something? Hope it helps.