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

Transition lagged on Chrome iOS #634

Closed
2 tasks done
thanhlmm opened this issue Jan 27, 2022 · 2 comments
Closed
2 tasks done

Transition lagged on Chrome iOS #634

thanhlmm opened this issue Jan 27, 2022 · 2 comments

Comments

@thanhlmm
Copy link

Checks

Version

latest

Description

The slide is lagged on Chrome browser iOS, it is fine in Safari

RPReplay_Final1643250860.mov

As I investigated that, most of the slide lib have the same issue with Chrome on iOS, so I think it is because of iOS or Chrome core

Reproduction Link

No response

Steps to Reproduce

Test in Splidejs demo page

Expected Behaviour

Same behavior as Safari

@thanhlmm thanhlmm added the bug Something isn't working label Jan 27, 2022
@NaotoshiFujita
Copy link
Collaborator

NaotoshiFujita commented Jan 27, 2022

This is the known issue of CSS transition on iOS Chrome. All CSS transitions are broken after switching tabs.
I don't know why but the team hasn't fixed it for years.

https://bugs.chromium.org/p/chromium/issues/detail?id=899130
https://bugs.chromium.org/p/chromium/issues/detail?id=1231712

If you really need to solve the problem, turn on the useScroll option (this is not documented on my web).

useScroll?: boolean;

If true, the slider will use requestAnimatonFrame to move the slider instead of CSS transition.

  • The performance is worse than CSS transition
  • It does not work on the fade mode

@NaotoshiFujita NaotoshiFujita removed the bug Something isn't working label Jan 27, 2022
@timohausmann
Copy link

timohausmann commented Feb 7, 2022

I'm experience the same issue on iPhone SE Chrome, iOS 15.1, @splidejs/svelte-splide 0.1.18. This not only happens after switching tabs but also when first opening the page, also on the homepage demo. useScroll: true fixed the issue.

edit: ok, after restarting chrome the issue doesnt show up.

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