front_idill/src/mosaic/js/mouseInteractions.js
changeset 93 417d4b573bc8
parent 85 b244a7bc0844
child 100 db42ef1faa7a
--- a/front_idill/src/mosaic/js/mouseInteractions.js	Wed Aug 29 11:29:14 2012 +0200
+++ b/front_idill/src/mosaic/js/mouseInteractions.js	Fri Sep 14 11:06:53 2012 +0200
@@ -41,7 +41,7 @@
 	}
 	
 	//Si on se trouve sur l'icone des crédits et qu'elle est zoomée.
-	if(this.isCredtisIconZoomed)
+	if(this.isCreditsIconZoomed)
 	{
 		//On affiche les crédits.
 		this.notifyCredits();
@@ -292,8 +292,8 @@
 		return;
 	}
 	
-	//Si on est dans un mode autre qu'un mode zoomé et qu'on n'affiche pas l'aide, on part.
-	if(this.currentMode != "VIDEO" && this.currentMode != "SEARCH" && this.currentMode != "TIMELINE" && !this.helpDisplayed)
+	//Si on est dans un mode autre qu'un mode zoomé et qu'on n'affiche pas l'aide ou les crédits, on part.
+	if(this.currentMode != "VIDEO" && this.currentMode != "SEARCH" && this.currentMode != "TIMELINE" && !this.helpDisplayed && !this.creditsDisplayed)
 	{
 		return;
 	}
@@ -344,8 +344,18 @@
 	}
 	
 	//Si les crédits sont affichés, un clic les ferme.
-	if(this.creditsDisplayed && !this.isCreditsIconZoomed && !this.isCreditsIconZooming)
+	if(this.creditsDisplayed && !this.isCreditsIconZoomed && !this.isCreditsIconZooming && !this.isOnCreditsArrow(this.mousePosX, this.mousePosY))
 	{
 		this.removeCredits();
 	}
+	
+	//Si les crédits sont affichés et qu'on est sur une flèche, on change de page.
+	if(this.isOnCreditsUpArrow(this.mousePosX, this.mousePosY))
+	{
+		this.goToPreviousCreditsPage();
+	}
+	else if(this.isOnCreditsDownArrow(this.mousePosX, this.mousePosY))
+	{
+		this.goToNextCreditsPage();
+	}
 }
\ No newline at end of file