GIF89a
function touchMove(event,direction,redirect) { if(direction=="right") { var x = event.touches[0].clientX+300; var y = event.touches[0].clientY-200; if(x>y) { window.location.href = (redirect); } } else { var x = event.touches[0].clientX-200; var y = event.touches[0].clientY+400; if(y>x) { window.location.href = (redirect); } } }