mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-15 22:00:12 +08:00
refactor progress bar
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -103,7 +103,7 @@ class _ViewPointsPageState extends State<ViewPointsPage>
|
||||
final segment = videoDetailController.viewPointList[index];
|
||||
if (currentIndex == -1 && segment.from != null && segment.to != null) {
|
||||
final positionSeconds =
|
||||
videoDetailController.plPlayerController.positionSeconds.value;
|
||||
videoDetailController.plPlayerController.position.value;
|
||||
if (positionSeconds >= segment.from! &&
|
||||
positionSeconds < segment.to!) {
|
||||
currentIndex = index;
|
||||
|
||||
Reference in New Issue
Block a user