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

Swiping through the carousel causes its parent to vertically scroll #2130

Open
benchesh opened this issue Feb 11, 2022 · 4 comments
Open

Swiping through the carousel causes its parent to vertically scroll #2130

benchesh opened this issue Feb 11, 2022 · 4 comments

Comments

@benchesh
Copy link

benchesh commented Feb 11, 2022

This issue is a little tricky describe but when you see it, you can't "unsee" it!

Using the carousel on a real mobile device (I'm using an iPhone 12) is like trying to handle soap. The scrolling is very slippery & unforgiving. If your finger moves across the screen at a very slight diagonal, the entire page will scroll at the same time instead of staying fixed. It's extremely easy to trigger accidentally unless you're very meticulous to swipe completely horizontally.

See this CodeSandBox (demo link here). The only thing I've done is add placeholder text above & below the carousel to more easily demonstrate the problem.

Compare with say, the carousels in this page and you'll see you can be significantly more carefree in how you navigate through them. As a result, the experience feels more polished and natural.

Has anyone found a workaround for this?

@benchesh benchesh changed the title Overly sensitive scrolling outside the component Swiping through the carousel causes its parent to scroll Feb 11, 2022
@benchesh benchesh changed the title Swiping through the carousel causes its parent to scroll Swiping through the carousel causes its parent to vertically scroll Feb 11, 2022
@harshaLekharaju
Copy link

Hi, have you found the resolution for this?
Found this issue recently on our website and was unable to find a proper resolution. This issue is happening in iOS browser for us

@gabelew
Copy link

gabelew commented Aug 18, 2022

Same issue here on iOS Safari. What is confusing is it doesn't happen on the react-slick.neostack demo page, but occurs for the code sandbox linked on the github page. I am not successful in pinpointing what makes the neostack demo different.

@harshaLekharaju
Copy link

@gabelew Used the hack/solution of xavi-tristancho in #1240. It resolved the issue for me

@yurixyz
Copy link

yurixyz commented Jun 7, 2023

Hi, is anyone looking into this issue?

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

4 participants