From e079a2400b481ae14ba8bb0fda6d3f53d63a4ab4 Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Thu, 7 Apr 2022 21:47:48 +0800 Subject: [PATCH] fix:control menu auto close --- src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.ts b/src/main.ts index 1a2927f..3283b95 100644 --- a/src/main.ts +++ b/src/main.ts @@ -409,6 +409,7 @@ window.onload = function () { controlOptionDom.classList.toggle('visible') } controlOptionDom.onmousedown = function (evt) { + controlOptionDom.classList.toggle('visible') const li = evt.target as HTMLLIElement const type = li.dataset.control switch (type) {