diff --git a/app/shared/video-player/src/commonMain/kotlin/ui/guesture/VideoGestureHost.kt b/app/shared/video-player/src/commonMain/kotlin/ui/guesture/VideoGestureHost.kt index 3f48acbc04..d7da5e3858 100644 --- a/app/shared/video-player/src/commonMain/kotlin/ui/guesture/VideoGestureHost.kt +++ b/app/shared/video-player/src/commonMain/kotlin/ui/guesture/VideoGestureHost.kt @@ -736,7 +736,7 @@ fun VideoGestureHost( if (totalDurationMillis == 0L) return@run val offsetRatio = (currentPositionMillis + seekerState.deltaSeconds.times(1000)).toFloat() / totalDurationMillis - previewPositionRatio(offsetRatio) + previewPositionRatio(offsetRatio.coerceIn(0f, 1f)) } } }