From aad5be7bd94428723a8485ea6be0480a41360651 Mon Sep 17 00:00:00 2001 From: kjmjh <18369898058@163.com> Date: Sat, 30 Nov 2024 17:41:09 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82=E3=80=82=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- desktop.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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(); +} +}); //开始菜单收回 // 上古代码