Streaming live at 10am (PST)

Lightbox mobile swipe event

Hi there!

Is it possible to disable the lightbox swipe navigation (in mobile) when the user starts to zoom an image? The idea is to avoid accidental swipes when we have a zoomed image.

Disabling the swipe event in the browser console does the job but I can’t get it working with javascript. Any lights please?


Website (please click in the image)


Just sharing the solution. Add this code before /body tag:


var Webflow = Webflow || [];
Webflow.push(function () {
  $(document).on('tap','.w-inline-block.w-lightbox', function(){

thanks! Do you know if there’s any way to disable the otpion to pass images while tapping?