jQuery UI arrastrable evita el desplazamiento en el móvil
Tengo elementos arrastrables con ancho de pantalla completo enumerados verticalmente.
Estoy usando un complemento llamado (jquery.ui.touch-punch) para habilitar jQuery draggable en el móvil. Pero el problema es que los elementos arrastrables impiden al usuario desplazarse por la página.
$('#novieList .element .content').draggable({
axis: 'x',
revert: function() {
return $(this).position().left < 30;
},
containment: [ 0, 0, 75, 0 ],
scope: 'element',
scroll: false,
delay: 300,
drag: function(event, ui) {
return true;
},
start: function(event, ui) {
// Prevent to drag the element after open it
var left = $(this).position().left;
return left == 0;
},
stop: function(event, ui) {
var left = $(this).position().left;
if (left != 0) {
$(this).offset({left: 75});
}
return true;
}
});