
Turquie: Carrefour des Civilisations
Un pays aux mille et une facettes.
Turquie: Carrefour des Civilisations
Un pays aux mille et une facettes.
Découvrez la Turquie, de l'Istanbul historique aux plages d'Antalya, en passant par la Cappadoce féerique.
Chargement des voyages
Avis voyageurs sur Îles des Princes
Paroles de Voyageurs YANIS
50) { // Minimum swipe distance threshold
if (touchMoveX < 0 && currentPage < pages - 1) {
currentPage++; // Swipe left
} else if (touchMoveX > 0 && currentPage > 0) {
currentPage--; // Swipe right
} else if (touchMoveX < 0 && currentPage === pages - 1) {
// Optional: Loop back to start on swipe left at the end
// currentPage = 0;
} else if (touchMoveX > 0 && currentPage === 0) {
// Optional: Loop back to end on swipe right at the beginning
// currentPage = pages - 1;
}
}
// Reset touch tracking
touchStartX = 0;
touchMoveX = 0;
dragOffset = 0;
"
@mousedown="isDragging = true; touchStartX = $event.clientX; touchMoveX = 0; dragOffset = 0; $event.preventDefault();"
@mousemove="
if (isDragging) {
touchMoveX = $event.clientX - touchStartX;
dragOffset = touchMoveX;
}
"
@mouseup="
if (isDragging) {
if (Math.abs(touchMoveX) > 50) { // Minimum drag distance threshold
if (touchMoveX < 0 && currentPage < pages - 1) {
currentPage++; // Drag left
} else if (touchMoveX > 0 && currentPage > 0) {
currentPage--; // Drag right
}
}
// Reset drag tracking
isDragging = false;
touchStartX = 0;
touchMoveX = 0;
dragOffset = 0;
}
"
@mouseleave="
if (isDragging) {
// Reset drag tracking if mouse leaves the area
isDragging = false;
touchStartX = 0;
touchMoveX = 0;
dragOffset = 0;
}
">