滚轮取消bug修改

This commit is contained in:
luojiaquan
2026-10-13 17:24:53 +08:00
parent 3598a0d669
commit 56588fad08
@@ -95,7 +95,9 @@ function onDocPointerDown(e) {
function onDocKeydown(e) {
if (e.key === 'Escape') close()
}
function onWindowScroll() {
function onWindowScroll(e) {
// 菜单自身(列较多时出现内部滚动条)的滚轮/滚动条滚动不关闭菜单
if (menuRef.value && e.target instanceof Node && menuRef.value.contains(e.target)) return
close()
}