fix preview scrubbing

This commit is contained in:
Nicolas Mowen 2024-03-22 10:27:19 -06:00
parent ff919fd192
commit 5f00c5813b

View File

@ -171,7 +171,7 @@ export default function PreviewThumbnailPlayer({
{...swipeHandlers}
>
{playingBack && (
<div className="absolute inset-0 animate-in fade-in pointer-events-none">
<div className="absolute inset-0 animate-in fade-in">
<PreviewContent
review={review}
relevantPreview={relevantPreview}
@ -486,7 +486,7 @@ function VideoPreview({
);
return (
<div className="relative size-full aspect-video bg-black pointer-events-none">
<div className="relative size-full aspect-video bg-black">
<video
ref={playerRef}
className="size-full aspect-video bg-black pointer-events-none"
@ -654,9 +654,9 @@ function InProgressPreview({
}
return (
<div className="relative size-full flex items-center bg-black pointer-events-none">
<div className="relative size-full flex items-center bg-black">
<img
className="size-full object-contain"
className="size-full object-contain pointer-events-none"
src={`${apiHost}api/preview/${previewFrames[key]}/thumbnail.webp`}
onLoad={handleLoad}
/>