Can't swipe in product image slider between arrows on mobile

Can't swipe in product image slider between arrows on mobile

igbizz
Tourist
4 0 1

Hey,

 

I'm having an issue with my product image slider on mobile.

Skärmavbild 2025-05-04 kl. 17.04.06.png

 

 

 

 

 

 

 

You can swipe between images with your finger, but only if you swipe above or below arrows. If you try to swipe between the arrows (marked as red), nothing happens.

 

I suspect the issue might be related to this CSS I’m using for the slider buttons:
.slider-buttons {
justify-content: space-between;
}

 

My guess is that justify-content: space-between; is causing the arrows to block swipe gestures in that area.

Skärmavbild 2025-05-04 kl. 17.01.03.png

 

 

 

 

 

 

 

 

 

 

 

 

My store: https://glimzprev.myshopify.com/products/sunglasses 

password: man

 

 

Thanks in advance for the help!

Replies 5 (5)

Moeed
Shopify Partner
7537 2035 2501

Hey @igbizz 

 

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


igbizz
Tourist
4 0 1

tim
Shopify Partner
4539 546 1658

Not exactly, but you're right -- the .slider-buttons element "floats" above the slides and prevents your swipes from reaching the slider.

It is fixable, you can add this to the "Custom CSS" setting of the section:

.product .slider-buttons {
  z-index: initial;
  transform: none;
  top: calc(50% - 22px);
}

.product .slider-buttons button {
  z-index: 10;
}

 

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
igbizz
Tourist
4 0 1

Thanks!

I'ts weird though because it works in devtools on computer, but on mobile it still has the same problem?

I have even tried putting important; on all of them.

igbizz
Tourist
4 0 1

I managed to fix it.