mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-02 08:28:18 +00:00
fix bad video renders
This commit is contained in:
1 parent
18a73a0500
commit
cf4c984f33
1 file changed
+4
@@ -584,7 +584,11 @@ export function LightboxModal({
|
||||
controls
|
||||
loop={true}
|
||||
autoPlay={true}
|
||||
playsInline
|
||||
className="h-full w-full object-contain"
|
||||
// Give WebKit a dedicated compositing layer for paused frames,
|
||||
// independent of the modal's transform/opacity animation.
|
||||
style={{ transform: "translateZ(0)" }}
|
||||
onLoadedData={(e) => {
|
||||
setMediaLoaded(true);
|
||||
const el = e.currentTarget;
|
||||
|
||||
Reference in new issue
Block a user