diff -r eb52a12370a3 -r afd60399a7b5 front_idill/src/mosaic/js/pointers.js --- a/front_idill/src/mosaic/js/pointers.js Tue Jul 24 16:35:10 2012 +0200 +++ b/front_idill/src/mosaic/js/pointers.js Thu Jul 26 14:34:02 2012 +0200 @@ -912,4 +912,27 @@ } } } +} + +/* + * Retourne vrai si la souris est sur la notification d'aide dans le mode d'interaction souris. + * Est appelé dans les fichiers : + * mosaic > onMouseMove. +*/ +Mosaic.prototype.isOnHelpIcon = function(x, y) +{ + var helpIcon = $('#helpIcon'); + //S'il n'y a pas d'icone d'aide, on quitte. + if(helpIcon.length <= 0) + { + return; + } + + //Si la souris est sur l'icone, on retourne true. + if(x > helpIcon.position().left && x < +helpIcon.position().left + helpIcon.width() && y > helpIcon.position().top && y < +helpIcon.position().top + helpIcon.height() + 2 * parseInt(helpIcon.css('margin'))) + { + return true; + } + + return false; } \ No newline at end of file