Repository navigation
Fix slider knob stopping short of the track end - #9345
omarchybot merged 2 commits into
Conversation
The knob was kept inside the track while the ticks and fill spanned its full width, so a slider at 100% still showed track past the knob. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
🧪 charly evaluation — PR #9345Verdict: ✅ PASS@tier2 (venue L2 = VM, software GPU) · branch head
🖼️ Candidate capture (PR #9345, head cf9b16e)
📓 Failing-output only (collapsed)Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system) |
|
Reviewed at cf9b16e, and the fix holds. The problem is real on Tests on the same VM: No second opinion. The configured reviewer (Codex Medium) answered a ping, but this run had used up its daily review allowance, so this review is one model's alone. Overlaps: #10274 and #13212 change the same Waiting on the maintainer. |
quattro taught PanelSlider to mirror in right-to-left layouts through trackX(), which collided with this branch's knobCenter. trackX() now measures from the inset track's own x, so the knob, the ticks and the pointer share one mapping in both directions, and knobCenter goes away because it ignored mirroring. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This branch stopped merging after Checked again on a disposable VM built from the Omarchy ISO, rendering Second opinion: Codex Medium reviewed the merged head and found no defects. It agreed that mirroring, the callers (audio, monitor, dev gallery) and the bounds all hold, and that the diff is the size of the problem. It had my notes in front of it, so this isn't guaranteed to be independent agreement. The earlier review on cf9b16e had no second opinion. This one did. #10274, #13212, #6467, #10915 and #13120 still touch this file without fixing this bug, so whichever lands second will need the same kind of merge. Waiting on the maintainer. |
The knob was kept inside the track while the ticks and fill spanned its full width, so a slider at 100% still showed track past the knob. Co-authored-by: Erik Johansson <172146456+ejuro@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Omarchybot <317366263+omarchybot@users.noreply.github.com> (cherry picked from commit 0ba7646)

At 100% a slider still shows a bit of track past the knob, so it never quite looks finished.
The knob is kept inside the track, but the ticks and the fill are laid out across the track's full width, so the two don't agree at the ends. This measures them the same way and insets the track by half a knob, letting the knob sit at the very end without leaving the control.
It's the shared slider, so this covers display brightness, text size, audio volume and the per-app mixer.