![Cat photo]()
Math.abs($event.changedTouches[0].screenY - touchStartY) && Math.abs($event.changedTouches[0].screenX - touchStartX) > 5) { $event.preventDefault(); $event.stopPropagation(); }"
@touchend="handleSwipe(touchStartX - $event.changedTouches[0].screenX, Math.abs(touchStartY - $event.changedTouches[0].screenY))"
:class="{
'slide-out-left': direction === 1 && animating,
'slide-out-right': direction === -1 && animating,
'slide-in-from-right': direction === 1 && !animating,
'slide-in-from-left': direction === -1 && !animating,
'slide-center': direction === 0
}" />
1 / 1