diff --git a/core/core.js.php b/core/core.js.php index 5e19c9a..688aa8f 100644 --- a/core/core.js.php +++ b/core/core.js.php @@ -553,14 +553,16 @@ $(document).ready(function(){ /** * Affiche le sous-menu quand il est sticky */ - $("nav:not(.navsub)").mouseenter(function(){ - $("#navfixedlogout .navSub").css({ 'pointer-events' : 'auto' }); - $("#navfixedconnected .navSub").css({ 'pointer-events' : 'auto' }); - }); - $("nav, .navSub").mouseleave(function(){ - $("#navfixedlogout .navSub").css({ 'pointer-events' : 'none' }); - $("#navfixedconnected .navSub").css({ 'pointer-events' : 'none' }); - }); + $("nav:not(.navsub)").mouseenter(function(){ + $("#navfixedlogout .navSub").css({ 'pointer-events' : 'auto' }); + $("#navfixedconnected .navSub").css({ 'pointer-events' : 'auto' }); + }); + $("nav, .navSub").mouseleave(function(){ + if($(window).width() > 799 ) { + $("#navfixedlogout .navSub").css({ 'pointer-events' : 'none' }); + $("#navfixedconnected .navSub").css({ 'pointer-events' : 'none' }); + } + }); /** * Chargement paresseux des images et des iframes