
Imlil: Cœur du Haut Atlas
Le point de départ de vos aventures en montagne.
Imlil: Cœur du Haut Atlas
Le point de départ de vos aventures en montagne.
Découvrez Imlil, un village berbère authentique au cœur des montagnes de l'Atlas.
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é