Skip to content

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

fix(export): address review feedback

Etienne Lescotc1320bd7317e
diff --git a/src/lib/cursor/nativeCursor.test.ts b/src/lib/cursor/nativeCursor.test.ts
index 472ee6f39..3bc49a0a2 100644
--- a/src/lib/cursor/nativeCursor.test.ts
+++ b/src/lib/cursor/nativeCursor.test.ts
@@ -244,7 +244,7 @@ describe("projectNativeCursorToLocal", () => {
expect(point?.y).toBeCloseTo(0 + (0.5 / 1.0) * 1080);
});
- it("projects onto the cropped (cover-letterboxed) painted rect, not the mask rect", () => {
+ it("projects onto the cropped (cover-overflowing) painted rect, not the mask rect", () => {
const screenRect = { x: 0, y: 0, width: 1920, height: 1080 };
const croppedRect = { x: 0, y: -540, width: 1920, height: 2160 };
diff --git a/src/lib/exporter/frameRenderer.ts b/src/lib/exporter/frameRenderer.ts
index 30fd38575..36e86a065 100644
--- a/src/lib/exporter/frameRenderer.ts
+++ b/src/lib/exporter/frameRenderer.ts
@@ -602,8 +602,10 @@ export class FrameRenderer {
getNativeCursorClickBounceProgress(this.config.cursorRecordingData, timeMs),
);
const appliedScale = this.animationState.appliedScale;
- // Normalize cursor size to the same fraction of video width as the preview;
- // both paths use maskRect.width / croppedVideoWidth.
+ // Normalize cursor size to croppedRect.width (the painted video width).
+ // The preview path still uses screenRect.width; they agree in cover mode but
+ // differ in fit-to-height letterbox — known asymmetry pending the preview-path
+ // follow-up to project the cursor onto the cropped sub-rect as well.
const sizeNorm =
this.layoutCache.videoSize.width > 0
? this.layoutCache.maskRect.width / this.layoutCache.videoSize.width