鼠标不响应首尾项对齐

This commit is contained in:
2024-12-12 21:58:32 +08:00
parent 18aee54570
commit 20b9ad37ed

View File

@@ -179,7 +179,6 @@ function handleMouseEnter(index: number): void {
if (!isKeyboardNavigating.value) {
selectedIndex.value = index
emit('select', { ...props.data[index], index })
ensureSelectedItemVisible()
}
}
@@ -193,7 +192,7 @@ const lastReachBoundaryTime = ref<{ top: number; bottom: number }>({
})
/**
* 处理<EFBFBD><EFBFBD>盘事件
* 处理盘事件
* 实现键盘导航、边界循环和项目选择功能
* @param e 键盘事件对象
*/