diff --git a/desktop.js b/desktop.js index 6128454..06ecda4 100755 --- a/desktop.js +++ b/desktop.js @@ -49,11 +49,11 @@ page.addEventListener('mouseup', enableIframes); page.addEventListener('touchend', enableIframes); page.addEventListener('touchcancel', enableIframes); -page.addEventListener('click',()=>{ - -if($('#start-menu').hasClass('show')){ - -hide_startmenu(); +page.addEventListener('click',(event)=>{ +if($('#start-menu').hasClass('show')&&!$(event.target).closest('#start-menu').length){ +hide_startmenu(); +} +}); //开始菜单收回 // 上古代码