Skip to content
Discussion options

You must be logged in to vote

Hi there!

The lightbox uses onWheel, onKeyDown and onPointerDown events for mouse wheel / trackpad, keyboard and mouse / touch navigation. To achieve the behavior you describe, you'd need to stop propagation of corresponding events from your custom slides.

<div
  onWheel={(event) => event.stopPropagation()}
  onKeyDown={(event) => event.stopPropagation()}
  onPointerDown={(event) => event.stopPropagation()}
>
  {
    // custom slide
  }
</div>

Hope this helps.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by igordanchenko
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