jTinder icon indicating copy to clipboard operation
jTinder copied to clipboard

prevent drag/swipe up/down

Open hirbod opened this issue 8 years ago • 3 comments

Hi,

very great plugin - really. Love it. There is just one piece of problem I'm facing on the smartphone. I can't scroll down. Is there any way you could provide an option to prevent swipe down/up to prevent scroll interuption? Thank you!

hirbod avatar Jul 13 '15 04:07 hirbod

I disliked the fact you could drag up/down, so I looked at the jTinder.js ; if you comment out the following lines, you can only drag items on the X plane; 90 96 102 104 107 129 131 134

this worked for me, however I dont know for sure that it will enable page scrolling.

stennett10 avatar Aug 06 '15 13:08 stennett10

I also face the same issue for scrolling interruption. I tried your solution but it didn't work for me. it prevents li element to drag up down but not allow to scroll either. please comment if anyone is having some other solution than this ASAP.

anpnarola avatar Sep 27 '16 11:09 anpnarola

I figured it out. You need to delete:

body { overflow: hidden; }

to enable scrolling

exb1994 avatar Nov 10 '16 04:11 exb1994