Skip to content

🎥 Make videos programmatically with React

Fix first HTML-in-canvas motion blur sample

JonnyBurger7dd919638c98
diff --git a/packages/motion-blur/src/HtmlInCanvasMotionBlur.tsx b/packages/motion-blur/src/HtmlInCanvasMotionBlur.tsx
index 6cfc4efb8f..ed97b208b8 100644
--- a/packages/motion-blur/src/HtmlInCanvasMotionBlur.tsx
+++ b/packages/motion-blur/src/HtmlInCanvasMotionBlur.tsx
@@ -88,8 +88,9 @@ const MotionBlurSample: React.FC<MotionBlurSampleProps> = ({
return (
<div
aria-hidden={!isRepresentativeSample}
- // Each sample has its own paint record so it can be captured separately.
- {...{drawable: ''}}
+ // The first sample is captured through HtmlInCanvas's drawable root.
+ // Only its canvas siblings need separate drawable paint records.
+ {...(index === 0 ? {} : {drawable: ''})}
style={{
position: 'absolute',
inset: 0,