Skip to content

bugfix:Jump to the wrong image - #2264

Merged
SnowCait merged 1 commit into
SnowCait:mainfrom
koteitan:bugfix/jump-to-wrong-image
Jul 15, 2026
Merged

bugfix:Jump to the wrong image#2264
SnowCait merged 1 commit into
SnowCait:mainfrom
koteitan:bugfix/jump-to-wrong-image

Conversation

@koteitan

@koteitan koteitan commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

problem

  • Jump to the wrong image (the 1st image) when clicking on the 2nd or later image in the post
    • demo:
      • 1: open the post
      • 2: click the second image (typhoon)
      • 3: problem: the first image (sashimi) is closed up
        • expected: Jump to the clicked image (typhoon)

change

  • Use Swiper's slideTo API to update the active slide and rendered position

test

  • npm run build: There is no new problem
  • npm run preview: Goto the demo page and click the second image -> the seconds image was closed up successfully.

…e in the post

- Use Swiper's slideTo API to update the active slide and rendered position
@koteitan
koteitan requested a review from SnowCait as a code owner July 15, 2026 12:59
@SnowCait SnowCait linked an issue Jul 15, 2026 that may be closed by this pull request
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
nostter 44a8ffc Commit Preview URL

Branch Preview URL
Jul 15 2026, 01:26 PM

@SnowCait
SnowCait enabled auto-merge July 15, 2026 13:26
@SnowCait

Copy link
Copy Markdown
Owner

Thanks!

@SnowCait
SnowCait merged commit ea34487 into SnowCait:main Jul 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Open the clicked image without animation in the thumbnail gallery

2 participants