From e5ca091858032f94e37932f7532798450ea9d656 Mon Sep 17 00:00:00 2001 From: JonatanSalas Date: Mon, 15 Mar 2021 00:13:19 -0300 Subject: [PATCH] feat: disable fire callback for carousel --- src/components/StoryDetail/hook.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/StoryDetail/hook.tsx b/src/components/StoryDetail/hook.tsx index 9d4b3fb..c01eefb 100644 --- a/src/components/StoryDetail/hook.tsx +++ b/src/components/StoryDetail/hook.tsx @@ -33,7 +33,7 @@ export const useStoryDetail = ({ const onVideoEnd = (idx) => { if (idx <= stories.length - 2) { trackRaf(() => { - carouselRef.current?.snapToItem(idx + 1, false, true); + carouselRef.current?.snapToItem(idx + 1, false, false); }); } else { onBackPress(idx);