front_idill/src/mosaic/js/pointers.js
changeset 55 afd60399a7b5
parent 52 277c94533395
child 58 a28488078053
equal deleted inserted replaced
54:eb52a12370a3 55:afd60399a7b5
   911                 _this.gestureDelRequested = false;
   911                 _this.gestureDelRequested = false;
   912             }
   912             }
   913         }
   913         }
   914     }
   914     }
   915 }
   915 }
       
   916 
       
   917 /*
       
   918  * Retourne vrai si la souris est sur la notification d'aide dans le mode d'interaction souris.
       
   919  * Est appelé dans les fichiers :
       
   920  * mosaic > onMouseMove.
       
   921 */
       
   922 Mosaic.prototype.isOnHelpIcon = function(x, y)
       
   923 {
       
   924 	var helpIcon = $('#helpIcon');
       
   925 	//S'il n'y a pas d'icone d'aide, on quitte.
       
   926 	if(helpIcon.length <= 0)
       
   927 	{
       
   928 		return;
       
   929 	}
       
   930 	
       
   931 	//Si la souris est sur l'icone, on retourne true.
       
   932 	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')))
       
   933 	{
       
   934 		return true;
       
   935 	}
       
   936 	
       
   937 	return false;
       
   938 }