
Sud du Maroc: Mille Contrastes
Des dunes aux sommets, une aventure sans fin.
Sud du Maroc: Mille Contrastes
Des dunes aux sommets, une aventure sans fin.
Découvrez le Sud marocain, ses kasbahs en terre, ses dunes dorées et ses montagnes majestueuses.
Chargement des voyages...
Avis voyageurs sur Ouarzazate
Paroles de Voyageurs
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;
}
">
Vérifié