Muchas gracias por tu aportación
pzin, estabas en lo cierto, dentro del archivo JS había la siguiente línea de código que he lo he puesto como comentario:
Código Javascript
:
Ver original$this.bind('touchstart', touchstart);
Al comentar la línia de código los links funcionan perfectamente, pero claro, ahora como aspecto negativo es que la navegación simplemente se puede hacer a través de la los puntos de paginación que hay a la derecha de la web.
Creo que no será necesario copiar todo el código del script, a ver si con lo que comparto es suficiente.
Código Javascript
:
Ver original$.fn.swipeEvents = function() {
return this.each(function() {
var startX,
startY,
$this = $(this);
// ESTO ESTÁ COMENTADO $this.bind('touchstart', touchstart);
function touchstart(event) {
var touches = event.originalEvent.touches;
if (touches && touches.length) {
startX = touches[0].pageX;
startY = touches[0].pageY;
$this.bind('touchmove', touchmove);
}
event.preventDefault();
}
function touchmove(event) {
var touches = event.originalEvent.touches;
if (touches && touches.length) {
var deltaX = startX - touches[0].pageX;
var deltaY = startY - touches[0].pageY;
if (deltaX >= 50) { $this.trigger("swipeLeft"); }
if (deltaX <= -50) { $this.trigger("swipeRight"); }
if (deltaY >= 50) { $this.trigger("swipeUp"); }
if (deltaY <= -50) { $this.trigger("swipeDown"); }
if (Math.abs(deltaX) >= 50 || Math.abs(deltaY) >= 50) {$this.unbind('touchmove', touchmove);}
}
event.preventDefault();
}
});
};
¿Alguna solución para que funcione el scroll también en pantallas táctiles?
Saludos y gracias de antemano.