鼠标不响应首尾项对齐
This commit is contained in:
@@ -179,7 +179,6 @@ function handleMouseEnter(index: number): void {
|
|||||||
if (!isKeyboardNavigating.value) {
|
if (!isKeyboardNavigating.value) {
|
||||||
selectedIndex.value = index
|
selectedIndex.value = index
|
||||||
emit('select', { ...props.data[index], index })
|
emit('select', { ...props.data[index], index })
|
||||||
ensureSelectedItemVisible()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -193,7 +192,7 @@ const lastReachBoundaryTime = ref<{ top: number; bottom: number }>({
|
|||||||
})
|
})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 处理<EFBFBD><EFBFBD>盘事件
|
* 处理键盘事件
|
||||||
* 实现键盘导航、边界循环和项目选择功能
|
* 实现键盘导航、边界循环和项目选择功能
|
||||||
* @param e 键盘事件对象
|
* @param e 键盘事件对象
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user