
-
AuthorPosts
-
July 15, 2025 at 1:06 pm #1486800
Hi folks, I realize only now that you introduced a couple of years ago the “swipe” feature on mobile for the lightboxes.
It seems like it is not working very well on my website, please check for instance the first gallery you have on this page (but it is the same on all pages):Checking it with Chrome and Brave on an IOS phone, if I swipe to the left, the image correctly jumps to the next one, but also the whole screen moves for one second to the left. If I swipe to the right, same behaviour: the whole pages moves for a while, and then I go to the previous slide.
Is this the way it is supposed to be working?
My website is of course updated to the last version of Enfold.
I am afraid there is some customization on my CSS/.PHP made in the past that is preventing it to work correctly…
Thanks & bye!
A.--
This topic was modified 4 weeks ago by
mistermagoo8691.
-
This topic was modified 4 weeks ago by
mistermagoo8691.
July 17, 2025 at 7:46 am #1486915Hey Angelo,
Thank you for the inquiry.
We can’t reproduce the issue on our end, but you can try adding this css code to prevent the lightbox container from moving during swipe.
#top .mfp-wrap { overflow: hidden; }
Let us know the result.
Best regards,
IsmaelJuly 21, 2025 at 1:58 pm #1487073Thanks Ismael for your help!
What mobile/broswer did you use when you tried to reproduce the issue?Anyhow: thanks for the hint, I’ve added the CSS, now it is better… but there is still an annoying side effect:
when you swipe, you’ll see that if you’re not swiping with your finger PERFECTLY horizontally, the screen still moves up and down a little bit, giving the… groggy experience you can see in the following screencast:It’s a Wetransfer video, the link will expire in 3 days: in case you read this message later, I will refresh the link.
Is there any magic CSS trick we can do to avoid ALSO this vertical movement during the swype?
Thanks as usual!
Bye,
A.-July 22, 2025 at 5:44 am #1487094Hi,
Thank you for the short clip.
Try to include this css code to prevent the document from shifting while navigating the lightbox.
.responsive .mfp-zoom-out-cur { overflow: hidden; }
Best regards,
IsmaelJuly 24, 2025 at 3:51 pm #1487187Thanks Ismael.
I don’t see any change, adding this CSS: the page is still scrolling a little bit up or down if I am not perfectly swiping horizontally.
Are you able to reproduce the issue that I’ve shown in the screencast I’ve included in the last post?THX
Bye,
A.-July 25, 2025 at 7:04 am #1487217Hi,
We’re unable to reproduce the issue, but the css modification should prevent the lightbox containers from wobbling while swiping. You can also try this css:
#top .mfp-wrap { overflow: hidden; touch-action: none; }
Let us know the result.
Best regards,
IsmaelJuly 29, 2025 at 2:20 pm #1487341Thanks Ismael. I would like to understand why you cannot replicate it… but this last CSS did the job: now it is perfect, the page is not wobbling anymore!
Thanks again, nice job as usual.
Bye!
A.-July 30, 2025 at 5:57 am #1487368 -
This topic was modified 4 weeks ago by
-
AuthorPosts
- The topic ‘Swipe on lightbox, seems not to be working properly’ is closed to new replies.