
Tizourgane: Citadelle de l'Anti-Atlas
Une forteresse berbère dominant la vallée.
Tizourgane: Citadelle de l'Anti-Atlas
Une forteresse berbère dominant la vallée.
Découvrez la Kasbah Tizourgane, un exemple remarquable de grenier collectif fortifié.
Chargement des voyages
Avis voyageurs sur Sud du Maroc
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;
}
">