Skip to content

Commit 41ecdfc

Browse files
committed
fix(snapshot): preserve CLI eager closure
1 parent e282481 commit 41ecdfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/snapshot/scroll-edge-state.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { AppError } from '@agent-device/kernel/errors';
22
import type { ScrollDirection } from '@agent-device/contracts/scroll-gesture';
33
import type { Point, RawSnapshotNode, SnapshotNode } from '@agent-device/kernel/snapshot';
4-
import { analyzeScrollEdgeState } from './scroll-edge-state/selection.ts';
54

65
export type ScrollEdge = 'top' | 'bottom';
76

@@ -27,6 +26,7 @@ export async function captureScrollEdgeState(params: {
2726
const { edge, target = {}, scope, captureNodes } = params;
2827
try {
2928
const nodes = await captureNodes(scope);
29+
const { analyzeScrollEdgeState } = await import('./scroll-edge-state/selection.ts');
3030
const state = analyzeScrollEdgeState(nodes, edge, target);
3131
if (scope && state.emptySnapshot) {
3232
return await captureScrollEdgeState({ edge, target, captureNodes });

0 commit comments

Comments
 (0)