[PR #30] Limit playback speed controls to valid presets (0.5x-4.0x) #87

Open
opened 2026-05-07 00:18:35 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/30
Author: @mayank1365
Created: 12/10/2025
Status: 🔄 Open

Base: mainHead: main


📝 Commits (1)

  • 735b1ca fix:Limit playback speed adjustments to prevent excessive values

📊 Changes

1 file changed (+4 additions, -2 deletions)

View changed files

📝 src/interfaces/race_replay.py (+4 -2)

📄 Description

Description

Fixed an issue where the up/down arrow key speed controls had no upper or lower bounds, allowing users to increase or decrease playback speed to any power of 2 indefinitely.

Changes

Up arrow now only increases speed when below 4.0x (maximum)
Down arrow now only decreases speed when above 0.5x (minimum)
Valid Speed Presets

  • 0.5x
  • 1.0x
  • 2.0x
  • 4.0x
Screenshot 2025-12-10 at 22 36 11

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/IAmTomShaw/f1-race-replay/pull/30 **Author:** [@mayank1365](https://github.com/mayank1365) **Created:** 12/10/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`735b1ca`](https://github.com/IAmTomShaw/f1-race-replay/commit/735b1ca031a82311a33d569abddf23af7ea79bd7) fix:Limit playback speed adjustments to prevent excessive values ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/interfaces/race_replay.py` (+4 -2) </details> ### 📄 Description ## Description Fixed an issue where the up/down arrow key speed controls had no upper or lower bounds, allowing users to increase or decrease playback speed to any power of 2 indefinitely. ## Changes Up arrow now only increases speed when below 4.0x (maximum) Down arrow now only decreases speed when above 0.5x (minimum) Valid Speed Presets * 0.5x * 1.0x * 2.0x * 4.0x <img width="1512" height="788" alt="Screenshot 2025-12-10 at 22 36 11" src="https://github.com/user-attachments/assets/525c89b0-8a24-450f-bf48-e0adcd081386" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/f1-race-replay#87
No description provided.