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

IOS: after a pause the next story is played #300

Open
Solio69 opened this issue Oct 17, 2023 · 2 comments
Open

IOS: after a pause the next story is played #300

Solio69 opened this issue Oct 17, 2023 · 2 comments

Comments

@Solio69
Copy link

Solio69 commented Oct 17, 2023

Hello!
After I release the long press (pause), the next story starts playing instead of continuing the current story.
This only happens on IOS, web and Android work correctly.

@xr1s0nx
Copy link

xr1s0nx commented Aug 27, 2024

Hello! After I release the long press (pause), the next story starts playing instead of continuing the current story. This only happens on IOS, web and Android work correctly.

Hello! Did you manage to find a solution?

@im-rasulev
Copy link

I fixed it like this:

useEffect(() => {
const storiesElem = storiesInnerRef.current;
const handleTouch = (e) => e.preventDefault();
if (storiesElem) {
storiesElem.addEventListener("touchstart", handleTouch, { passive: false });
}
return () => {
if (storiesElem) {
storiesElem.removeEventListener("touchstart", handleTouch);
}
};
}, [storiesVisible]);

storiesElem is a wrapper over

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

3 participants