Skip to content

Commit

Permalink
feat: disable fire callback for carousel
Browse files Browse the repository at this point in the history
  • Loading branch information
JonatanSalas committed Mar 15, 2021
1 parent d6f1a76 commit e5ca091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/StoryDetail/hook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e5ca091

Please sign in to comment.