Skip to content

Commit a528c1b

Browse files
committed
docs(web): tighten DemoStrip controlled-window comments
1 parent 40ac1b9 commit a528c1b

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

apps/web/components/blog/timeline/DemoStrip.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import { clamp, DEMO_DURATION, speechEnergy } from "./scene";
2323
* count comes from the product's own `filmstripTileCount`), minus everything
2424
* that needs a video element.
2525
*
26-
* Controlled: the parent owns `time` and the zoom window, so every demo can put
27-
* its own chrome around the same strip.
26+
* Controlled: the parent owns `time` and the visible window, and puts its own
27+
* chrome around the strip.
2828
*/
2929

3030
/**
@@ -168,9 +168,8 @@ export function DemoStrip({
168168
const tileCount = filmstripTileCount(width);
169169
const progress = clamp(fractionInWindow(time, window), 0, 1) * 100;
170170

171-
// A strip with nothing to seek (the zoom and reply demos use one as a
172-
// backdrop) is decoration, so it announces itself as nothing at all rather
173-
// than as a slider that ignores you.
171+
// A strip with nothing to seek is decoration, so it announces itself as
172+
// nothing at all rather than as a slider that ignores you.
174173
const semantics = onSeek
175174
? {
176175
role: "slider" as const,

0 commit comments

Comments
 (0)