Skip to content
Discussion options

You must be logged in to vote

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:

  • onPointerDown
  • onKeyDown
  • onWheel

https://codesandbox.io/s/yet-another-react-lightbox-112-l70ev3?file=/src/App.js

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@janheinvanasseldonk
Comment options

Answer selected by janheinvanasseldonk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants