Mark items as reviewed when manually seeking (#10494)

This commit is contained in:
Nicolas Mowen 2024-03-17 06:29:41 -06:00 committed by GitHub
parent 89bd3867a9
commit cf6ef84271
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -433,10 +433,17 @@ function VideoPreview({
setIgnoreClick(true);
}
if (setReviewed && !review.has_been_reviewed) {
setReviewed();
}
setProgress(value);
playerRef.current.currentTime =
playerStartTime + (value / 100.0) * playerDuration;
},
// we know that these deps are correct
// eslint-disable-next-line react-hooks/exhaustive-deps
[
manualPlayback,
playerDuration,
@ -585,8 +592,15 @@ function InProgressPreview({
setIgnoreClick(true);
}
if (!review.has_been_reviewed) {
setReviewed(review.id);
}
setKey(value);
},
// we know that these deps are correct
// eslint-disable-next-line react-hooks/exhaustive-deps
[manualFrame, setIgnoreClick, setManualFrame, setKey],
);