react-responsive-carousel icon indicating copy to clipboard operation
react-responsive-carousel copied to clipboard

Can not scroll vertically in mobile

Open jleider opened this issue 5 years ago • 23 comments

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.

jleider avatar Jun 30 '20 19:06 jleider

I have the same proble.

wulinjie122 avatar Feb 27 '21 15:02 wulinjie122

Same here!

juagarciaga avatar Aug 23 '21 12:08 juagarciaga

Same here! did you guys find any workaround?

Aniket-IN avatar Nov 01 '21 18:11 Aniket-IN

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

sanders54 avatar Jan 13 '22 13:01 sanders54

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

Aniket-IN avatar Jan 13 '22 13:01 Aniket-IN

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

lambdadev007 avatar Jun 07 '22 17:06 lambdadev007

@lambdadev007 thanks it worked ,

ZainabShakeel avatar Jun 10 '22 06:06 ZainabShakeel

Thank you @lambdadev007, it works great!

eliasdiek avatar Jun 14 '22 14:06 eliasdiek

Thnks @lambdadev007 solved

naothomachida avatar Aug 18 '22 15:08 naothomachida

@lambdadev007 worked, thanks!

xyztavo avatar Nov 01 '22 17:11 xyztavo

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

mizanur919 avatar Jan 03 '23 11:01 mizanur919

thank you @lambdadev007

kratos-respawned avatar Jan 08 '23 13:01 kratos-respawned

Thanks, @lambdadev007 it worked!

sooraj-sanwal avatar Feb 08 '23 18:02 sooraj-sanwal

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

rjomir avatar Feb 13 '23 20:02 rjomir

Thank you @lambdadev007 this works

stefkudla avatar May 11 '23 16:05 stefkudla

Thank you @lambdadev007 this works

gsmatheus avatar Sep 12 '23 22:09 gsmatheus

Thank you @lambdadev007 , it worked!

tarunji-123 avatar Dec 06 '23 06:12 tarunji-123

Thanks @lambdadev007 worked for me !!

Basantjanghel avatar Jan 30 '24 13:01 Basantjanghel

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

haghverdish avatar Feb 01 '24 06:02 haghverdish