mirror of
https://github.com/IAmTomShaw/f1-race-replay.git
synced 2026-05-09 08:25:56 +02:00
[PR #159] Fix progress bar lap label misalignment #183
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/f1-race-replay#183
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/159
Author: @AlgoFoe
Created: 1/8/2026
Status: 🔄 Open
Base:
main← Head:bug-fix📝 Commits (1)
d4583c8fixes progress-bar accuracy📊 Changes
1 file changed (+48 additions, -23 deletions)
View changed files
📝
src/ui_components.py(+48 -23)📄 Description
Fixes an issue where the progress bar playhead and lap labels were misaligned (e.g. lap 21 previewed while the bar appeared closer to lap 23–24). #157.
Potential Cause:
frame / total_frames, which treated the timeline as length N instead of frame indices 0..N-1, causing ascale/offseterror.Fix:
total_frames - 1.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.