front_idill/src/mosaic/js/mouseInteractions.js
changeset 100 db42ef1faa7a
parent 89 b6a115568b52
--- a/front_idill/src/mosaic/js/mouseInteractions.js	Tue Sep 18 23:46:41 2012 +0200
+++ b/front_idill/src/mosaic/js/mouseInteractions.js	Thu Sep 20 04:12:52 2012 +0200
@@ -338,7 +338,7 @@
 	}
 	
 	//Si l'aide est affichée, un clic la ferme.
-	if(this.helpDisplayed && !this.isHelpIconZoomed && !this.isHelpIconZooming)
+	if(this.helpDisplayed && !this.isHelpIconZoomed && !this.isHelpIconZooming && !this.isOnHelpArrow(this.mousePosX, this.mousePosY))
 	{
 		this.removeHelp();
 	}
@@ -358,4 +358,14 @@
 	{
 		this.goToNextCreditsPage();
 	}
+	
+	//Si l'aide est affichée et qu'on est sur une flèche, on change de page.
+	if(this.isOnHelpUpArrow(this.mousePosX, this.mousePosY))
+	{
+		this.goToPreviousHelpDetailsPage();
+	}
+	else if(this.isOnHelpDownArrow(this.mousePosX, this.mousePosY))
+	{
+		this.goToNextHelpDetailsPage();
+	}
 }
\ No newline at end of file