From 2b43d5f3f631f4eba941278063dbe2ba61a036f9 Mon Sep 17 00:00:00 2001 From: JonatanSalas Date: Mon, 26 Oct 2020 19:33:58 -0300 Subject: [PATCH] feat: disable animation for onVideoEnd --- src/components/StoryDetail/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/StoryDetail/index.tsx b/src/components/StoryDetail/index.tsx index de156bc..49d2ca0 100644 --- a/src/components/StoryDetail/index.tsx +++ b/src/components/StoryDetail/index.tsx @@ -121,7 +121,7 @@ export const StoryDetail: React.FC = ({ onVideoEnd={() => { if (idx <= stories.length - 2) { setTimeout( - () => carouselRef.current.snapToItem(idx + 1, true, true), + () => carouselRef.current.snapToItem(idx + 1, false, true), 250 ); } else {