
Haut Atlas: Toit du Maroc
Des paysages époustouflants et une culture riche.
Haut Atlas: Toit du Maroc
Des paysages époustouflants et une culture riche.
Explorez les sommets majestueux, les vallées verdoyantes et les villages berbères du Haut Atlas marocain.
Chargement des voyages...
Avis voyageurs sur Sud du Maroc
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é