Skip to content

Commit

Permalink
ensure range
Browse files Browse the repository at this point in the history
  • Loading branch information
NieR4ever committed Nov 4, 2024
1 parent 40604e3 commit 6a9409c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
}
Expand Down

0 comments on commit 6a9409c

Please sign in to comment.