block mouse click in Carousel Free Drag option
-
Re: block mouse click navigation from carousel
Hi! I am working on my website: cristinalavosi.com
On the front page I have a Carousel as a Cover where I've set a Free Drag with Slides and Show Multiple Slides. I was wondering if it is possible to disable the mouse click and only permit the free drag because often the carousel suddenly jumps to the next or previous image when dragging.Ps I am referring to the previous topic "block mouse click navigation from carouse" because it is a similar problem but I don't want to have the autoplay. I still want to keep the free drag but not to have the slides moving at the click.
Again, this is the website I am working on: cristinalavosi.com
Thank you in advance.
Best,
Cristina -
Dear Cristina @CristinaLavosi
Not possible with the current options atm, bit of a tricky one - easy to remove clicking altogether but obviously not practical!
there is the Swiper API, looking at click events: https://swiperjs.com/api/#events
Also preventing click but not drag is a thing to google: https://stackoverflow.com/questions/18032136/prevent-click-event-after-drag-in-jquery/18032193
https://stackoverflow.com/questions/53703120/how-can-i-prevent-click-on-drag
But at the moment this may not be an option, unless asking the aid of a developer.
https://stackoverflow.com/questions/44115954/swiper-touch-events-enable-click-but-disable-drag
Sorry that this is not the help you were probably after - hopefully others have some ideas, if too difficult compromising on that area of your design may be necessary
Best wishes for 2021!
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it