滚轮取消bug修改
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user