Gallery item click scrolls page to top

Description:
On mobile, a gallery click scrolls the page back to top. It works fine on desktop.

See video screengrab from desktop:
https://jam.dev/c/b2782921-b2ad-4391-829b-92d2f2d97e48

Screengrab from my actual mobile device:
https://drive.google.com/file/d/1fRO4bJ8WKOdTZkjl2Ds7Ey7XtVxvIf9-/view?usp=share_link

  • WordPress version: 6.1
  • Cwicly Plugin version: 1.2.8
  • Cwicly Theme version: 1.0.3

Hi @owynter,

Thank you for taking the time to report this.

I can’t seem to reproduce this on my side.
I also notice that you have added custom CSS to the gallery items.

Does this error reproduce itself on other Cwicly galleries or more specifically this one?

I had noticed it before, but wasn’t really paying attention at the time. It’s just a bit of an issue now since the gallery is at the bottom of the page, so it forces a user to scroll back down each time.

I will try to recreate just using plain gallery without any additional CSS.