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

wrong time over calculation #82

Open
lorraine98 opened this issue Jul 14, 2022 · 0 comments
Open

wrong time over calculation #82

lorraine98 opened this issue Jul 14, 2022 · 0 comments

Comments

@lorraine98
Copy link

lorraine98 commented Jul 14, 2022

Hello thanks for making this libarary.
But I have a question with calculating time over.

 react_1.useEffect(function () {
        if (status !== 'STOPPED' && time === endTime) {
            dispatch({ type: 'stop' });
            if (typeof onTimeOver === 'function') {
                onTimeOver();
            }
        }

I think time >= endTime is more correct.
I have to calc this with frame and ends with xx.000001 like this.
Sometime it doesn't match corrrectly.

Thank you.

@lorraine98 lorraine98 changed the title wrong time over calcuation wrong time over calculation Jul 14, 2022
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

No branches or pull requests

1 participant