Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Prevent slide from auto swipe to next one onItemClick #648

Unanswered
DonHuskini asked this question in Q&A
Discussion options

I wanted to prevent the slide from auto swiping to the next one on click because the user can click/tap the video for sharing, for eg. I tried several different approaches like adding onItemClick={(e) => {e.preventDefault(); e.stopPropagation()}}, none worked. At last, I found a workaround by adding interval={99999} so will take 9999ms to switch to next after click.

Google.Chrome.-.Vouch.-.Google.Chrome.1.mp4
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /