MouseTooltipTranslator icon indicating copy to clipboard operation
MouseTooltipTranslator copied to clipboard

Issue - Compatibility with View Transitions API

Open di4m0nds opened this issue 2 years ago • 2 comments

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:

  • Browser Version: Chrome Version 1.61.120 Chromium 120.0.6099.234 Official built 64-bit.
  • Operating System: Ubuntu 22.04.3 LTS
  • View Transitions API: LINK
  • Example website: LINK

di4m0nds avatar Jan 31 '24 14:01 di4m0nds

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

di4m0nds avatar Jan 31 '24 16:01 di4m0nds

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.

GentleRock avatar Feb 03 '24 17:02 GentleRock