Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

feat(website): end the cursor take on the green pointer

Etienne Lescot33df263e651a
diff --git a/website/src/components/Recreation/driver.ts b/website/src/components/Recreation/driver.ts
index bb5077edf..c5ff86797 100644
--- a/website/src/components/Recreation/driver.ts
+++ b/website/src/components/Recreation/driver.ts
@@ -25,6 +25,7 @@
import { CURSORS } from "./generated";
import {
BEATS,
+ CURSOR_CHOICE,
CUT_INDEX,
type Frame,
frameAt,
@@ -451,6 +452,10 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {
while the cut landed somewhere else. CUT_INDEX is derived from the
tokens' own `cut` field, so this cannot drift again. */
const [c0, c1, c2, c3, c4] = CUT_INDEX;
+ /* Same trap, same fix: the swatch the pointer presses and the pack the
+ frame selects were two literals that had to agree, and reordering the
+ picks silently left the hand on the wrong one. */
+ const [, cur1, cur2] = CURSOR_CHOICE;
return [
[0.4, 58, 66],
[1.45, ...at("th-1")],
@@ -463,10 +468,10 @@ export function attachDriver(refs: DriverRefs, cls: DriverClasses): () => void {
[7.95, ...pad()],
[9.0, ...pad()],
[10.3, ...pad()],
- [11.0, ...at("cur-2")],
- [11.9, ...at("cur-2")],
- [12.15, ...at("cur-1")],
- [12.63, ...at("cur-1")],
+ [11.0, ...at(`cur-${cur1}`)],
+ [11.9, ...at(`cur-${cur1}`)],
+ [12.15, ...at(`cur-${cur2}`)],
+ [12.63, ...at(`cur-${cur2}`)],
[12.7, ...sz()],
[13.2, ...sz()],
[14.3, ...sz()],
diff --git a/website/src/components/Recreation/scene.ts b/website/src/components/Recreation/scene.ts
index 247a4e533..d09b43b56 100644
--- a/website/src/components/Recreation/scene.ts
+++ b/website/src/components/Recreation/scene.ts
@@ -460,8 +460,17 @@ const ease = (v: number) => {
/** The three background picks, and the two cursor picks. */
const BG_PICKS = [2.0, 3.95, 5.8];
const CURSOR_PICKS = [11.45, 12.55];
-/** Which pack each pick selects, as an index into `CURSORS.themes`. */
-const CURSOR_CHOICE = [0, 2, 1];
+/** Which pack each pick selects, as an index into `CURSORS.themes`: the default
+ * arrow, then the pink one, then the green.
+ *
+ * The order is the page's, not the take's. Green is the site's accent, and the
+ * pack chosen last is the one the recorded pointer wears for the eleven seconds
+ * of timeline and transcript that follow — so the take ends on it and the pink
+ * is spent early, while the panel it is being picked in is still the subject.
+ *
+ * Exported because the pointer has to be on the swatch whose pack the frame
+ * selects, and the path in `driver.ts` reads this rather than repeating it. */
+export const CURSOR_CHOICE = [0, 1, 2];
export const WALLPAPER_COUNT_SHOWN = 12;