Fix layout shifting (#10313)

* Fix layout shifting

* Change value for current data

* Fix motion scrubbing lockout
This commit is contained in:
Nicolas Mowen
2024-03-07 09:11:24 -07:00
committed by GitHub
parent 8776cdfd5b
commit fc6d6a4e9a
3 changed files with 25 additions and 25 deletions

View File

@@ -453,7 +453,7 @@ export class DynamicVideoController {
}
if (time > this.preview.end) {
if (this.clipChangeLockout) {
if (this.clipChangeLockout && time - this.preview.end < 30) {
return;
}
@@ -470,7 +470,7 @@ export class DynamicVideoController {
}
if (time < this.preview.start) {
if (this.clipChangeLockout) {
if (this.clipChangeLockout && this.preview.start - time < 30) {
return;
}

View File

@@ -67,10 +67,10 @@ export default function PreviewThumbnailPlayer({
preventScrollOnSwipe: true,
});
const handleSetReviewed = useCallback(
() => setReviewed(review),
[review, setReviewed],
);
const handleSetReviewed = useCallback(() => {
review.has_been_reviewed = true;
setReviewed(review);
}, [review, setReviewed]);
// playback