Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling Pause Logic #240

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Handling Pause Logic #240

wants to merge 10 commits into from

Conversation

ReiiYuki
Copy link

@ReiiYuki ReiiYuki commented Dec 2, 2022

You forgot pause in story (which is caused of auto play)

why I did

pause the story when click on see more zone but the progress bar still running
when click on the left screen of first story. Stories become pause.
when click on the right screen of first story. Stories become pause.
What i do

using useRef instead useState to check pause because of closure issue https://stackoverflow.com/questions/62806541/how-to-solve-the-react-hook-closure-issue
remove pause when story changes to another story so fix stories become pause problems.
call onAllStoryEnd when click at right side of last story

@vercel
Copy link

vercel bot commented Dec 2, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-insta-stories ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2023 3:49am

Atipat Pankong and others added 3 commits December 12, 2022 10:46
fix: progress don't stop on pause bug and pause at first and last story
Atipat Pankong and others added 4 commits December 13, 2022 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant