Skip to content

🎥 Make videos programmatically with React

Update Sequence.tsx

Jonny Burger7075a40e913f
diff --git a/packages/core/src/Sequence.tsx b/packages/core/src/Sequence.tsx
index 4ceb30ae0e..5b7b2dcbaa 100644
--- a/packages/core/src/Sequence.tsx
+++ b/packages/core/src/Sequence.tsx
@@ -265,6 +265,7 @@ const PremountedSequenceRefForwardingFunction: React.ForwardRefRenderFunction<
name,
...otherProps
} = props;
+
const active =
frame < from &&
frame > from - premountFor &&
@@ -274,7 +275,7 @@ const PremountedSequenceRefForwardingFunction: React.ForwardRefRenderFunction<
return {
...passedStyle,
opacity: active ? 0 : 1,
- pointerEvents: active ? 'none' : passedStyle?.pointerEvents ?? 'auto',
+ pointerEvents: active ? 'none' : passedStyle?.pointerEvents ?? undefined,
};
}, [active, passedStyle]);