fix(frontend): auto-scroll table during swipe select

This commit is contained in:
erio
2026-03-08 03:51:41 +08:00
parent 7f5e7372d3
commit c6d47fa3a6
+3 -1
View File
@@ -253,7 +253,9 @@ export function useSwipeSelect(
startY = clientY
lastMouseY = clientY
lastEndIndex = -1
cachedScrollParent = containerRef.value ? getScrollParent(containerRef.value) : null
cachedScrollParent = cachedRows.length > 0
? getScrollParent(cachedRows[0])
: (containerRef.value ? getScrollParent(containerRef.value) : null)
createMarquee()
updateMarquee(clientY)