dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Reviews Compare Notes Search Review guide fix(audio): map slider click to 0–150% scale, matching fill 9b51664792539b3a59fdebe0599a5681de7c6a1a
Oliver Jan Krylow <oliver@bugabinga.net > · 29 Jun 2026
unsigned
Browse files Compare with HEAD
The volume track renders fill across a 0–150% range (fill = width *
percent/150) but click/drag mapped event.x/width as 0–100%, so the
thumb landed left of the cursor and 100% was unreachable by click.
Multiply the click ratio by 1.5 — the algebraic inverse of the fill
scale. Media seek stays 0–1 (unchanged).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Changed files (1) Diff layout Auto Unified Split
quickshell/nuguland/PopoutHost.qml Modified +4 / −4 text lines
3910 3910 MouseArea { MouseArea {3911 3911 anchors.fill: parent anchors.fill: parent3912 3912 onClicked : (event) => { onClicked : (event) => {3913 - return root.setVolume(sinkRow.modelData.id, event.x / Math .max (1 , width));3913 + return root.setVolume(sinkRow.modelData.id, event.x / Math .max (1 , width) * 1 . 5 );3915 3915 onPositionChanged : (event) => { onPositionChanged : (event) => {3916 3916 if (pressed) if (pressed)3917 - root.setVolume(sinkRow.modelData.id, event.x / Math .max (1 , width));3917 + root.setVolume(sinkRow.modelData.id, event.x / Math .max (1 , width) * 1 . 5 );4054 4054 MouseArea { MouseArea {4055 4055 anchors.fill: parent anchors.fill: parent4056 4056 onClicked : (event) => { onClicked : (event) => {4057 - return root.setVolume(sourceRow.modelData.id, event.x / Math .max (1 , width));4057 + return root.setVolume(sourceRow.modelData.id, event.x / Math .max (1 , width) * 1 . 5 );4059 4059 onPositionChanged : (event) => { onPositionChanged : (event) => {4060 4060 if (pressed) if (pressed)4061 - root.setVolume(sourceRow.modelData.id, event.x / Math .max (1 , width));4061 + root.setVolume(sourceRow.modelData.id, event.x / Math .max (1 , width) * 1 . 5 );