Files
tty7/crates
l0ng-ai 9963cfb8fc fix(settings): let the scroll slider reach the range it documents
`mouse_scroll_multiplier` is clamped to 0.1..=10, and the reference page
says so. The slider spanned 0.5..=5.0.

Two things followed. Half the documented range could not be set from the
window at all — 0.2 and 8 are storable, keepable values with no position
on the control that owns them. And a hand-set 8x drew a thumb pinned at
the slider's own maximum, three quarters of the way along a track whose
end means 5; the number beside it read "8.00x", so the control and its
own readout disagreed on screen.

Its two sibling sliders each span exactly their clamp — window opacity
0.2..=1.0, background-image opacity 0..=1 — so this was the outlier
rather than the convention. It now reads its ends from named constants
beside the clamp, which is where `ui_font_size` and the panel widths
already keep theirs (#550), so the two cannot part again. The step drops
to a tenth: the wider span has to keep 1.00 a position you land on rather
than something to be hit between two.

The test holds both ends through a `sanitize`, so the ends the slider
offers are ends the file keeps, and checks the reference page still names
the same pair — it is the third copy of the range and the one a reader
meets first. Checked against an injected wrong range, not only a green
tree.
2026-08-22 21:51:30 +08:00
..