diff --git a/packages/interface/src/components/explorer/VirtualizedList.tsx b/packages/interface/src/components/explorer/VirtualizedList.tsx index c121515b1..7f66b230a 100644 --- a/packages/interface/src/components/explorer/VirtualizedList.tsx +++ b/packages/interface/src/components/explorer/VirtualizedList.tsx @@ -117,7 +117,20 @@ export const VirtualizedList = memo(({ data, context, onScroll }: Props) => { return (
-
+
{ + if ( + !scrollRef.current || + (!(e.target as HTMLElement).classList.contains('file-row') && + scrollRef.current !== e.target) + ) + return; + + getExplorerStore().selectedRowIndex = -1; + }} + >
{ height: `${virtualRow.size}px`, transform: `translateY(${virtualRow.start}px)` }} - className="absolute top-0 left-0 flex w-full" + className="file-row absolute top-0 left-0 flex w-full" key={virtualRow.key} > {explorerStore.layoutMode === 'list' ? (