--- a/front_idill/src/mosaic/js/pointers.js Thu Aug 02 11:54:08 2012 +0200
+++ b/front_idill/src/mosaic/js/pointers.js Wed Aug 08 18:40:40 2012 +0200
@@ -805,7 +805,7 @@
//Si le pointeur est sur la notification.
if(x > notification_search.position().left && x < (+notification_search.position().left + notification_search.width()) && y > notification_search.position().top && y < (+notification_search.position().top + notification_search.height()))
{
- if(!this.alreadyOnNotification && ($('#spinner').length == 0 && !this.config.mouseInteractions || this.config.mouseInteractions))
+ if(!this.alreadyOnNotification && ($('#spinner').length == 0 && !this.config.mouseInteractions || this.config.mouseInteractions) && !this.isTablet)
{
notification_search.css('background-image', currentPicto.replace('/big/' + (this.config.mouseInteractions ? 'MI/' : '') + 'valid/', '/big/' + (this.config.mouseInteractions ? 'MI/' : '') + 'hover/'));
@@ -971,7 +971,91 @@
}
//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')))
+ if(x > helpIcon.position().left && x < +helpIcon.position().left + helpIcon.width() + 2 * parseInt(helpIcon.css('margin-left')) && y > helpIcon.position().top && y < +helpIcon.position().top + helpIcon.height() + 2 * parseInt(helpIcon.css('margin-left')))
+ {
+ return true;
+ }
+
+ return false;
+}
+
+/*
+ * Retourne vrai si le doigt est sur la notification de sortie dans le mode d'interaction tablettes.
+*/
+Mosaic.prototype.isOnExitIcon = function(x, y)
+{
+ var exitIcon = $('#exitIcon');
+ //S'il n'y a pas d'icone d'aide, on quitte.
+ if(exitIcon.length <= 0)
+ {
+ return;
+ }
+
+ //Si la souris est sur l'icone, on retourne true.
+ if(x > exitIcon.position().left && x < +exitIcon.position().left + exitIcon.width() + 2 * parseInt(exitIcon.css('margin-left')) && y > exitIcon.position().top && y < +exitIcon.position().top + exitIcon.height() + 2 * parseInt(exitIcon.css('margin-left')))
+ {
+ return true;
+ }
+
+ return false;
+}
+
+/*
+ * Retourne vrai si le doigt est sur la notification de retour vers la mosaïque dans le mode d'interaction tablettes.
+*/
+Mosaic.prototype.isOnHomeIcon = function(x, y)
+{
+ var homeIcon = $('#homeIcon');
+ //S'il n'y a pas d'icone d'aide, on quitte.
+ if(homeIcon.length <= 0)
+ {
+ return;
+ }
+
+ //Si la souris est sur l'icone, on retourne true.
+ if(x > homeIcon.position().left && x < +homeIcon.position().left + homeIcon.width() + 2 * parseInt(homeIcon.css('margin-left')) && y > homeIcon.position().top && y < +homeIcon.position().top + homeIcon.height() + 2 * parseInt(homeIcon.css('margin-left')))
+ {
+ return true;
+ }
+
+ return false;
+}
+
+/*
+ * Retourne vrai si le doigt est sur la notification de sortie de recherche dans le mode d'interaction tablettes.
+*/
+Mosaic.prototype.isOnSearchExitIcon = function(x, y)
+{
+ var searchExitIcon = $('#searchExitIcon');
+ //S'il n'y a pas d'icone d'aide, on quitte.
+ if(searchExitIcon.length <= 0)
+ {
+ return;
+ }
+
+ //Si la souris est sur l'icone, on retourne true.
+ if(x > searchExitIcon.position().left && x < +searchExitIcon.position().left + searchExitIcon.width() + 2 * parseInt(searchExitIcon.css('margin-left')) && y > searchExitIcon.position().top && y < +searchExitIcon.position().top + searchExitIcon.height() + 2 * parseInt(searchExitIcon.css('margin-left')))
+ {
+ return true;
+ }
+
+ return false;
+}
+
+/*
+ * Retourne vrai si le doigt est sur la notification de recherche dans le mode d'interaction tablettes.
+*/
+Mosaic.prototype.isOnSearchNotification = function(x, y)
+{
+ var searchNotification = $('#notify_search_1gesture');
+ //S'il n'y a pas d'icone d'aide, on quitte.
+ if(searchNotification.length <= 0)
+ {
+ return;
+ }
+
+ //Si la souris est sur l'icone, on retourne true.
+ if(x > searchNotification.position().left && x < +searchNotification.position().left + searchNotification.width() + 2 * parseInt(searchNotification.css('margin-left')) && y > searchNotification.position().top && y < +searchNotification.position().top + searchNotification.height() + 2 * parseInt(searchNotification.css('margin-left')))
{
return true;
}