let posX = 0;
let posY = 0;
document.addEventListener('touchmove', event => {
const { clientX, clientY } = event.touches[0];
if (posY < clientY) {
console.log('Вниз')
}
if (posY > clientY) {
console.log('Вверх')
}
posX = clientX;
posY = clientY;
})