fix: match progress slider dragging to visible thumb

The 3-point progress thumb was drawn inside larger native knob bounds. Override those bounds for progress only so adjacent clicks seek; retain native volume geometry and tracking. Native click regression reproduced before the fix and passes afterward.
This commit is contained in:
2026-10-22 12:12:22 +02:00
parent 80c5f36479
commit dea8880b9b
3 changed files with 43 additions and 4 deletions
+2 -1
View File
@@ -201,8 +201,9 @@ struct CastPlaybackCheck {
_ = NSApplication.shared
NSApp.setActivationPolicy(.prohibited)
require(castVolumeSliderFeedbackCheck(), "Native slider keeps user position during tracking and applies receiver volume when idle")
require(playbackSliderHitCheck(), "Progress slider seeks beside the visible thumb and grabs only the thumb")
if CommandLine.arguments.count == 2, CommandLine.arguments[1] == "--slider-regression" {
print("PASS: native volume slider tracking preserves user input and idle receiver feedback")
print("PASS: progress thumb hit bounds, adjacent seeking, and volume tracking feedback")
return
}
let source = URL(fileURLWithPath: CommandLine.arguments[1])