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

Weird behaviour on iphone #77

Open
abren93 opened this issue Aug 27, 2023 · 1 comment
Open

Weird behaviour on iphone #77

abren93 opened this issue Aug 27, 2023 · 1 comment

Comments

@abren93
Copy link

abren93 commented Aug 27, 2023

Hello,

I tested the same setup on android with google chrome and on ios 13 and 14 with both safari and google chrome.
On android the snapping is instant, while on ios there is a great amount of delay until the snapping kicks in.
Here is my setup:
const createScrollSnap = require('scroll-snap').default;
createScrollSnap(
element,
{
snapDestinationX: '0%',
snapDestinationY: '100%',
timeout: 0,
duration: 0,
threshold: 0.1,
easing: (t) => (t * t * t),
},
onSnap,
);

I tried different variations of this but it seemed to have no effect on the time it takes to snap.
Is this a ios problem and is there anything I can do?
Thank you

@lucafalasco
Copy link
Owner

Hi @abren93, yes that is a known issue with iOS momentum scrolling unfortunately, I might try to look for some sort of solution/workaround as the experience on iOS is not great at the moment.. happy to evaluate ideas/PRs as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants