Disable swiper #112
-
|
Hi, I'm using yet-another-react-ligthbox to create a lightbox for videos/images and maps, I'm using custom slides for rendering the maps and video files. I want to disable swiping when I'm rendering a map. Is there any way to temporarily disable the swiping/sliding functionality on certain slides? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi there! While there is no dedicated setting to explicitly disable swiping functionality on specific slides, you can achieve this by intercepting and cancelling propagation of the following events:
https://codesandbox.io/s/yet-another-react-lightbox-112-l70ev3?file=/src/App.js |
Beta Was this translation helpful? Give feedback.
-
|
I also put these properties too |
Beta Was this translation helpful? Give feedback.
Hi there! While there is no dedicated setting to explicitly disable swiping functionality on specific slides, you can achieve this by intercepting and cancelling propagation of the following events:
https://codesandbox.io/s/yet-another-react-lightbox-112-l70ev3?file=/src/App.js