do-web / jTinder

jTinder is a javascript library that makes rating people, products, images very easy and fast. It is optimized for mobile touch device but has also a desktop fallback.
GNU General Public License v2.0
235 stars 101 forks source link

prevent drag/swipe up/down #11

Open hirbod opened 9 years ago

hirbod commented 9 years ago

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!

stennett10 commented 8 years ago

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.

anpnarola commented 7 years ago

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.

exb1994 commented 7 years ago

I figured it out. You need to delete:

body { overflow: hidden; }

to enable scrolling