-
Notifications
You must be signed in to change notification settings - Fork 166
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
How can I prevent scrolling while sliding on mobile? #153
Comments
Also looking for this functionality after recent client feedback. |
Just use following css |
@magFixCorp Nice workaround! |
@magFixCorp this is only a partial solution. Applying pan-x makes it so that the user cannot scroll vertically at all on the carousel. It should still be possible to swipe up and down on the carousel to scroll the entire page up and down. An idea I had was to apply pan-x when the event
I made a separate issue for that here. I instead tried adapting a solution for another slider component, and it works quite well. The code is in the last few comments here: akiran/react-slick#1240 Here is my adaptation:
|
@axelkennedal this looks like good solution. Maybe we can ask the author @ismail9k to include this piece of code into the carousel itself and make it configurable with a prop |
hey @ismail9k i saw you merged a fix, but i still have the issue, should i apply the css solution here to have the fix ? |
Hello
I'm a beginner at vue.js.
I want to touch the carousel on the mobile so that the vertical scroll does not work when sliding. (Only horizontal sliding while touching)
Does this plug-in include features for this?
Thank you.
The text was updated successfully, but these errors were encountered: