Skip to content

Commit

Permalink
修复进度条出现负数 (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
NieR4ever authored Nov 4, 2024
1 parent 40604e3 commit 55fbd65
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 55fbd65

Please sign in to comment.