diff --git a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/player/PlayerScreenRuntimeUi.kt b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/player/PlayerScreenRuntimeUi.kt index 4a39312b6..9bd018caa 100644 --- a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/player/PlayerScreenRuntimeUi.kt +++ b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/player/PlayerScreenRuntimeUi.kt @@ -335,7 +335,7 @@ private fun BoxScope.RenderPlaybackOverlays( onSkipInterval = { interval -> val rawMs = (interval.endTime * 1000.0).toLong() val durationMs = playbackSnapshot.durationMs - val seekMs = if (durationMs > 0L) rawMs.coerceAtMost(durationMs) else rawMs + val seekMs = if (durationMs > 0L) rawMs.coerceAtMost(durationMs - 1) else rawMs playerController?.seekTo(seekMs) scheduleProgressSyncAfterSeek() skipIntervalDismissed = true