Jump to content

Gallery 'previous' button not working on mobile

Go to solution Solved by HoaLT,

Recommended Posts

Hi, 

Just as the title says, the previous button of the gallery on the page https://www.zuelch.space/landing/project-one-h346n-sgbwt is working fine on desktop, but not all the time on mobile. I noticed that it works down to a browser width of 546px, but not narrower, so it doesn't work on most phones.

I think maybe the image block covers the button at some width, but I have no clue as to how to adjust it accordingly. I tried some stuff like the z-index property, the mobile width, of the button etc. , but that doesn't work.

I'd really appreciate it if I could have some insight from someone here, since there isn't anything on the web regarding this issue.

Thank you in advance,

Max

Link to comment
  • Solution
1 hour ago, Zuelch said:

Hi, 

Just as the title says, the previous button of the gallery on the page https://www.zuelch.space/landing/project-one-h346n-sgbwt is working fine on desktop, but not all the time on mobile. I noticed that it works down to a browser width of 546px, but not narrower, so it doesn't work on most phones.

I think maybe the image block covers the button at some width, but I have no clue as to how to adjust it accordingly. I tried some stuff like the z-index property, the mobile width, of the button etc. , but that doesn't work.

I'd really appreciate it if I could have some insight from someone here, since there isn't anything on the web regarding this issue.

Thank you in advance,

Max

I checked that this code makes some other element over the previous button so we can not click on it.

image.thumb.png.0595a49ddfcb8f4e7407893963dffa47.png

If this style is required for desktop view, you should set this code in a breakpoint for desktop so it would not affect the style on mobile

@media only screen and (min-width: 768px) {
 /* add your custom css code here */
}

I tried hiding this element,  then I could click on previous button as normal

Hope it can help

Press 👍  or mark my comment as solution if you find my sharing useful

🆒 Squarespace pinchzoom lightbox plugin (affiliate link)

👁‍🗨 360 degree photo viewer (affiliate link)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.