HiDeoo / starlight-image-zoom

Starlight plugin adding zoom capabilities to your documentation images
https://starlight-image-zoom.vercel.app
MIT License
47 stars 4 forks source link

When using View Transitions, the page cannot be opened for the first time. #10

Closed moatkon closed 6 months ago

moatkon commented 6 months ago

Describe the bug

When I turn on View Transitions, when I load the page for the first time, the magnifying glass appears when I move the mouse over the image, but clicking on it does not work. After I refresh the current page, clicking on the image to enlarge it works.

To Reproduce

  1. turn on View Transitions
  2. load the page for the first time
  3. clicking on image does not work.

Expected behavior

  1. turn on View Transitions
  2. load the page for the first time
  3. clicking on image does work!!!

How often does this bug happen?

Every time

System Info

macOs: 13.6.6 chrome: 124.0.6367.208

Additional Context

No response

HiDeoo commented 6 months ago

Support for view transitions was added to the plugin in v0.3.0 but Starlight officially does not support support view transitions so the first step "turn on View Transitions" is not as obvious as it sounds.

Are you using something like the Starlight support from the Bag of Tricks?

Nonetheless, if you could provide a small reproducible example of the issue, that would be great, either using astro.new or a small GitHub repository.

moatkon commented 6 months ago

Sorry, it's my problem. It works fine after upgrading to 0.3.0+

HiDeoo commented 6 months ago

Sorry, it's my problem. It works fine after upgrading to 0.3.0+

Amazing to hear, thanks for following back on the issue 🎉