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

Can not scroll vertically in mobile #469

Open
jleider opened this issue Jun 30, 2020 · 23 comments
Open

Can not scroll vertically in mobile #469

jleider opened this issue Jun 30, 2020 · 23 comments

Comments

@jleider
Copy link

jleider commented Jun 30, 2020

When on a mobile device (tested with FF, Chrome and Safari emulator) any vertical scrolling of the page is not possible when dragging within a carousel element. Swiping left and right works as expected to move the carousel to the right and left. However you can no longer scroll the page up and down which causes issues if your carousel is close to or greater than the device height, effectively trapping the user from being able to scroll up and down the page.

Tried with the config parameters swipe=true and both emulateTouch=false and emulateTouch=true. Also adjusted the swipeScrollTolerance with success reducing errant left/right swipes but it has no effect on vertical scrolling.

Experienced with v3.2.7.

@wulinjie122
Copy link

I have the same proble.

@juagarciaga
Copy link

Same here!

@Aniket-IN
Copy link

Aniket-IN commented Nov 1, 2021

Same here! did you guys find any workaround?

@sanders54
Copy link

sanders54 commented Jan 13, 2022

I have the same issue. Would love a fix or a workaround.

@Aniket-IN
Copy link

I have the same issue. Would love a fix or a workaround.

I used this library for few months, I used to disable the sliding on mobile devices.

But now I've started using SwiperJs

@lambdadev007
Copy link

lambdadev007 commented Jun 7, 2022

I was able to solve the issue by setting preventMovementUntilSwipeScrollTolerance={true} and swipeScrollTolerance={50}

@ZainabShakeel
Copy link

@lambdadev007 thanks it worked ,

@eliasdiek
Copy link

Thank you @lambdadev007, it works great!

@naothomachida
Copy link

Thnks @lambdadev007 solved

@xyztavo
Copy link

xyztavo commented Nov 1, 2022

@lambdadev007 worked, thanks!

@mizanur919
Copy link

mizanur919 commented Jan 3, 2023

I was able to solve the issue by setting preventMovementUntilSwipeScrollTolerance={true} and swipeScrollTolerance={50}
It's working properly
Thank you so much

@kratos-respawned
Copy link

thank you @lambdadev007

@sooraj-sanwal
Copy link

Thanks, @lambdadev007 it worked!

@rjomir
Copy link

rjomir commented Feb 13, 2023

trying to scroll vertically on thumbs giving the same issue, has anyone fixed it ?

@stefkudla
Copy link

Thank you @lambdadev007 this works

@gsmatheus
Copy link

Thank you @lambdadev007 this works

@tarunji-123
Copy link

Thank you @lambdadev007 , it worked!

@Basantjanghel
Copy link

Basantjanghel commented Jan 30, 2024

Thanks @lambdadev007 worked for me !!

@haghverdish
Copy link

I was able to solve the issue by
import {Carousel} from "primeng/carousel";
constructor(){
Carousel.prototype.onTouchMove = () => { };
}

@MattyB2112
Copy link

@lambdadev007

2 years later and this has answered my EXACT question! Thank you so much :D

@perryraskin
Copy link

@lambdadev007 THANK YOU, YOU BEAUTIFUL HUMAN

@viktoriabakun
Copy link

@lambdadev007 Thanks! Helped me on Android! :)
(on IOS it was ok)

@parthpaghdal0
Copy link

@lambdadev007 Thanks a lot! This works for me.

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