Skip to content

Commit

Permalink
feat: disable animation for onVideoEnd
Browse files Browse the repository at this point in the history
  • Loading branch information
JonatanSalas committed Oct 26, 2020
1 parent fc9fd6f commit 2b43d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/StoryDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const StoryDetail: React.FC<StoreDetailProps> = ({
onVideoEnd={() => {
if (idx <= stories.length - 2) {
setTimeout(
() => carouselRef.current.snapToItem(idx + 1, true, true),
() => carouselRef.current.snapToItem(idx + 1, false, true),
250
);
} else {
Expand Down

0 comments on commit 2b43d5f

Please sign in to comment.