diff -r 34afef0f9e18 -r b6a115568b52 front_idill/src/mosaic/js/mouseInteractions.js --- a/front_idill/src/mosaic/js/mouseInteractions.js Wed Aug 29 11:29:14 2012 +0200 +++ b/front_idill/src/mosaic/js/mouseInteractions.js Sun Sep 09 15:11:32 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