Skip to content

Commit 9c043e9

Browse files
committed
docs(studio): note the load-bearing hook order behind the scroll-race fix
Flagged by an independent review of the prior commit: nothing in the suite would catch a future refactor that reorders these two hook calls and reintroduces the stale-scroll race.
1 parent 6246551 commit 9c043e9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/studio/src/player/components/Timeline.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ export const Timeline = memo(function Timeline({
262262
expandedElements.length,
263263
displayLayout.totalH,
264264
]);
265+
// Order is load-bearing: must register before useTimelineLogicalFocus below.
265266
const { pps, fitPps, displayContentWidth, displayDuration, zoomModeRef, manualZoomPercentRef } =
266267
useTimelineGeometry({
267268
viewportWidth: viewport.clientWidth,

0 commit comments

Comments
 (0)