Skip to content

Commit c2388b2

Browse files
committed
test(studio): inject a 45 ms stall per timeline scroll step to prove the gate fails it
1 parent c90286d commit c2388b2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/studio/src/player/components/useTimelineScrollViewport.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export function useTimelineScrollViewport(
7070
const scrollingRef = useRef(false);
7171

7272
const syncScrollViewport = useCallback((el: HTMLDivElement, isScrolling = false) => {
73+
if (isScrolling) for (const end = performance.now() + 45; performance.now() < end; );
7374
// Row virtualization is the only consumer of the per-frame scroll snapshot.
7475
// With the flag off, publishing it re-rendered every mounted clip on every
7576
// scroll frame and bought nothing, so the scroll path stops here and

0 commit comments

Comments
 (0)