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

Carousel swipe/scroll issue #7616

Closed
sjunior96 opened this issue Jan 17, 2025 · 2 comments
Closed

Carousel swipe/scroll issue #7616

sjunior96 opened this issue Jan 17, 2025 · 2 comments
Labels
Status: Needs Reproducer Issue needs a runnable reproducer

Comments

@sjunior96
Copy link

sjunior96 commented Jan 17, 2025

On mobile devices, I am struggling with the fact that when users touch the screen and move vertically to scroll the page, if the move is slightly in diagonal to the Carousel, it changes to the next or previous item. I have tried adding onTouchStart, onTouchMove and onTouchEnd events to customize the behavior and only allow the event to propagate if the move was mostly horizontal, but have had no success with this approach.

Even using a ref to add the event listeners mentioned above, with passive: false, the console throws the error "Unable to preventDefault inside passive event listener invocation" or just does not work as I expected, completely blocking the Carousel from changing the page in all cases.

I need a way to prevent the users from changing the carousel page unless they really want to do that.

@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 17, 2025
@sja-cslab
Copy link
Contributor

@sjunior96 Please add a Stackblitz showing what exactly you're doing

@melloware melloware added Status: Needs Reproducer Issue needs a runnable reproducer and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 17, 2025
Copy link

Please fork the Stackblitz project and create a case demonstrating your bug report. This issue will be closed if no activities in 20 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Reproducer Issue needs a runnable reproducer
Projects
None yet
Development

No branches or pull requests

3 participants