Author SHA1 Message Date
SpriteandClaude Opus 5.5 cff5f49dc3 Smooth wheel scrolling: route scroll over sliders to the list or the volume
CI / native (pull_request) Successful in 1m15s
CI / check (pull_request) Successful in 9s
GtkRange's built-in scroll controller moved a slider by its page increment
(10%) per wheel detent, ignored the tilt wheel and returned GDK_EVENT_STOP
for every scroll event, including a touchpad's vertical swipe it did nothing
with. So scrolling a list stopped dead whenever a slider passed under the
pointer and changed that stream's volume instead.

Sliders now replace that controller with one that asks MoonBit
(@model.SliderWheel) synchronously where each event goes:
- while the list is moving (it moved or was sent a scroll < 600 ms ago,
  kinetic deceleration included) events keep scrolling the list;
- otherwise a mouse wheel changes the volume by 2% per detent, fractional
  for high-resolution wheels, tilt wheel included;
- a touchpad gesture is decided at its first movement: mainly vertical
  scrolls the list (kinetic), mainly horizontal moves the knob with the
  fingers (physical direction).

Measured under Xvfb with XTest and 8 playback streams: 12 wheel notches
over a row title used to scroll 3 times and drop a stream from 100% to 20%;
now the list scrolls to the end and no volume changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 06:44:52 +00:00
4 changed files with 65 additions and 136 deletions

No files matched your search

+10 -13
View File
@@ -6,16 +6,12 @@ on:
pull_request: pull_request:
workflow_dispatch: workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
# Pure MoonBit: type-check every package and run the portable model tests # Pure MoonBit: type-check every package and run the model tests.
# directly on the Depot Ubuntu 24.04 runner. # Needs no audio/GUI libraries, so it runs on the default runner image
# (node:20-bullseye-like).
check: check:
runs-on: depot-ubuntu-24.04-4 runs-on: ubuntu-latest
timeout-minutes: 15
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -30,18 +26,19 @@ jobs:
moon check --target native --deny-warn moon check --target native --deny-warn
moon fmt --check moon fmt --check
# Native tests run in the trixie job: linking MoonBit's runtime needs
# -lpthread on bullseye's glibc 2.31.
- name: moon test (pure packages) - name: moon test (pure packages)
run: moon test --target wasm-gc run: moon test --target wasm-gc
# Native build + headless smoke test. Ubuntu 24.04 (the Depot host image) # Native build + headless smoke test. Debian bullseye (the default runner
# only ships WirePlumber 0.4, so this job runs in a debian:trixie container # image) has no libwireplumber-0.5 and a too-old GTK4, so this job runs in
# (PipeWire 1.4, WirePlumber 0.5, GTK 4.18). # a debian:trixie container (PipeWire 1.4, WirePlumber 0.5, GTK 4.18).
# The container has no Node, so actions/checkout cannot run; clone with git. # The container has no Node, so actions/checkout cannot run; clone with git.
native: native:
runs-on: depot-ubuntu-24.04-4 runs-on: ubuntu-latest
container: container:
image: debian:trixie image: debian:trixie
timeout-minutes: 30
steps: steps:
- name: Install build and test dependencies - name: Install build and test dependencies
run: | run: |
+5 -7
View File
@@ -187,9 +187,8 @@ install -Dm644 -t ~/.local/share/icons/hicolor/scalable/actions data/icons/hicol
gtk-update-icon-cache -f -t ~/.local/share/icons/hicolor # optional gtk-update-icon-cache -f -t ~/.local/share/icons/hicolor # optional
``` ```
The app icon is `org.latha.moonmix` (a dark-slate 2.5D mixer deck with a The app icon is `org.latha.moonmix` (three gold-lit mixer faders on a dark
crescent moon and stereo peak LEDs above three sky-blue faders), shipped as violet-slate card), shipped as scalable and symbolic SVGs under
scalable and symbolic SVGs under
`data/icons/hicolor/`. The window uses it as its icon and the program name is `data/icons/hicolor/`. The window uses it as its icon and the program name is
`org.latha.moonmix`, which matches the `.desktop` file so Wayland shells show `org.latha.moonmix`, which matches the `.desktop` file so Wayland shells show
it too. Run from a checkout, moonmix also searches `./data/icons` and it too. Run from a checkout, moonmix also searches `./data/icons` and
@@ -316,10 +315,9 @@ session bus with a fake portal (`tools/fake-portal.py`) that reports a green
accent, switches it to orange while moonmix runs, and renders the tabs again accent, switches it to orange while moonmix runs, and renders the tabs again
(`<prefix>-accent-<n>.png`) once the change has been applied. (`<prefix>-accent-<n>.png`) once the change has been applied.
CI (`.gitea/workflows/ci.yaml`) runs on Depot (`depot-ubuntu-24.04-4`) runners: CI (`.gitea/workflows/ci.yaml`) runs the pure checks on the default runner.
pure checks run directly on Ubuntu 24.04, and the native build and smoke test It runs the native build and the smoke test in a `debian:trixie` container,
run in a `debian:trixie` container because Ubuntu 24.04 only ships WirePlumber because bullseye has no WirePlumber 0.5.
0.4.
## Releases ## Releases
@@ -1,122 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128"> <svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
<defs> <defs>
<linearGradient id="edge" x1="0" y1="0" x2="1" y2="0"> <linearGradient id="bg" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#2c3144"/> <stop offset="0" stop-color="#2a2d3a"/>
<stop offset="0.1" stop-color="#171a25"/> <stop offset="0.55" stop-color="#1d202a"/>
<stop offset="0.5" stop-color="#131620"/> <stop offset="1" stop-color="#17191f"/>
<stop offset="0.9" stop-color="#171a25"/>
<stop offset="1" stop-color="#2a2f42"/>
</linearGradient>
<linearGradient id="face" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#414860"/>
<stop offset="0.5" stop-color="#2d3244"/>
<stop offset="1" stop-color="#222635"/>
</linearGradient> </linearGradient>
<linearGradient id="rim" x1="0" y1="0" x2="0" y2="1"> <linearGradient id="rim" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#ffffff" stop-opacity="0.34"/> <stop offset="0" stop-color="#ffffff" stop-opacity="0.18"/>
<stop offset="0.24" stop-color="#ffffff" stop-opacity="0.03"/> <stop offset="0.38" stop-color="#ffffff" stop-opacity="0"/>
<stop offset="0.88" stop-color="#000000" stop-opacity="0.08"/>
<stop offset="1" stop-color="#000000" stop-opacity="0.32"/>
</linearGradient> </linearGradient>
<linearGradient id="screen" x1="0" y1="0" x2="0" y2="1"> <radialGradient id="glow" cx="50%" cy="54%" r="44%">
<stop offset="0" stop-color="#090c14"/> <stop offset="0" stop-color="#f5b021" stop-opacity="0.09"/>
<stop offset="1" stop-color="#131929"/> <stop offset="1" stop-color="#f5b021" stop-opacity="0"/>
</linearGradient>
<radialGradient id="moon-bloom" cx="50%" cy="50%" r="50%">
<stop offset="0" stop-color="#f8d26a" stop-opacity="0.32"/>
<stop offset="1" stop-color="#f8d26a" stop-opacity="0"/>
</radialGradient> </radialGradient>
<linearGradient id="moon" x1="0.1" y1="0" x2="0.9" y2="1"> <linearGradient id="gold" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#fff8dd"/> <stop offset="0" stop-color="#f9c94e"/>
<stop offset="0.55" stop-color="#f9d267"/> <stop offset="0.55" stop-color="#f5b021"/>
<stop offset="1" stop-color="#df9a20"/> <stop offset="1" stop-color="#db9512"/>
</linearGradient>
<linearGradient id="glass" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" stop-color="#ffffff" stop-opacity="0.11"/>
<stop offset="0.55" stop-color="#ffffff" stop-opacity="0.02"/>
<stop offset="1" stop-color="#ffffff" stop-opacity="0"/>
</linearGradient>
<linearGradient id="track" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#76d0ff"/>
<stop offset="0.45" stop-color="#3c92f0"/>
<stop offset="1" stop-color="#2668cc"/>
</linearGradient> </linearGradient>
<linearGradient id="cap" x1="0" y1="0" x2="0" y2="1"> <linearGradient id="cap" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#ffffff"/> <stop offset="0" stop-color="#ffffff"/>
<stop offset="0.18" stop-color="#eef2f8"/> <stop offset="1" stop-color="#d7dbe5"/>
<stop offset="0.46" stop-color="#cdd4e2"/>
<stop offset="0.54" stop-color="#b7c0d2"/>
<stop offset="0.86" stop-color="#e3e8f2"/>
<stop offset="1" stop-color="#cbd2e0"/>
</linearGradient> </linearGradient>
</defs> </defs>
<!-- Extruded 2.5D mixer console chassis --> <!-- Squircle card -->
<rect x="14" y="20" width="100" height="98" rx="18" fill="url(#edge)"/> <rect x="8" y="8" width="112" height="112" rx="26" fill="url(#bg)"/>
<rect x="14" y="10" width="100" height="100" rx="18" fill="url(#face)"/> <rect x="8" y="8" width="112" height="112" rx="26" fill="url(#glow)"/>
<rect x="14.75" y="10.75" width="98.5" height="98.5" rx="17.25" fill="none" stroke="url(#rim)" stroke-width="1.5"/> <rect x="8.5" y="8.5" width="111" height="111" rx="25.5" fill="none" stroke="#3c4154" stroke-opacity="0.65" stroke-width="1"/>
<rect x="9" y="9" width="110" height="110" rx="25" fill="none" stroke="url(#rim)" stroke-width="1.2"/>
<!-- Recessed OLED display window -->
<rect x="23" y="19.5" width="82" height="27" rx="8" fill="#06080f" opacity="0.55"/>
<rect x="23.5" y="20" width="81" height="26" rx="7.5" fill="url(#screen)"/>
<path d="M 31 46.4 L 97 46.4" stroke="#ffffff" stroke-opacity="0.16" stroke-width="1" stroke-linecap="round"/>
<!-- Backlit crescent moon -->
<circle cx="38.5" cy="33" r="11" fill="url(#moon-bloom)"/>
<path d="M 41.6 26.4 A 7.1 7.1 0 1 0 41.6 39.6 A 5.6 5.6 0 1 1 41.6 26.4 Z" fill="url(#moon)"/>
<!-- Stereo peak-meter LEDs -->
<rect x="52" y="26.5" width="7.2" height="4.8" rx="1.5" fill="#34d399"/>
<rect x="61.2" y="26.5" width="7.2" height="4.8" rx="1.5" fill="#34d399"/>
<rect x="70.4" y="26.5" width="7.2" height="4.8" rx="1.5" fill="#38bdf8"/>
<rect x="79.6" y="26.5" width="7.2" height="4.8" rx="1.5" fill="#f7be42"/>
<rect x="88.8" y="26.5" width="7.2" height="4.8" rx="1.5" fill="#232b40"/>
<rect x="52" y="34.5" width="7.2" height="4.8" rx="1.5" fill="#34d399"/>
<rect x="61.2" y="34.5" width="7.2" height="4.8" rx="1.5" fill="#34d399"/>
<rect x="70.4" y="34.5" width="7.2" height="4.8" rx="1.5" fill="#38bdf8"/>
<rect x="79.6" y="34.5" width="7.2" height="4.8" rx="1.5" fill="#232b40"/>
<rect x="88.8" y="34.5" width="7.2" height="4.8" rx="1.5" fill="#232b40"/>
<!-- Subtle glass reflection -->
<path d="M 31 20 H 97 A 7.5 7.5 0 0 1 104.5 27.5 V 30 L 68 20 Z" fill="url(#glass)"/>
<!-- Etched dB scale ticks -->
<g stroke="#ffffff" stroke-opacity="0.17" stroke-width="1.2" stroke-linecap="round">
<line x1="23.5" y1="61" x2="26.5" y2="61"/>
<line x1="23.5" y1="76" x2="26.5" y2="76"/>
<line x1="23.5" y1="91" x2="26.5" y2="91"/>
<line x1="101.5" y1="61" x2="104.5" y2="61"/>
<line x1="101.5" y1="76" x2="104.5" y2="76"/>
<line x1="101.5" y1="91" x2="104.5" y2="91"/>
</g>
<!-- Recessed fader troughs --> <!-- Recessed fader troughs -->
<rect x="33.5" y="53" width="7.5" height="48" rx="3.75" fill="#0b0e16" stroke="#ffffff" stroke-opacity="0.07" stroke-width="0.8"/> <rect x="33" y="30" width="10" height="68" rx="5" fill="#0e1015" stroke="#ffffff" stroke-opacity="0.06" stroke-width="1"/>
<rect x="60.25" y="53" width="7.5" height="48" rx="3.75" fill="#0b0e16" stroke="#ffffff" stroke-opacity="0.07" stroke-width="0.8"/> <rect x="59" y="30" width="10" height="68" rx="5" fill="#0e1015" stroke="#ffffff" stroke-opacity="0.06" stroke-width="1"/>
<rect x="87" y="53" width="7.5" height="48" rx="3.75" fill="#0b0e16" stroke="#ffffff" stroke-opacity="0.07" stroke-width="0.8"/> <rect x="85" y="30" width="10" height="68" rx="5" fill="#0e1015" stroke="#ffffff" stroke-opacity="0.06" stroke-width="1"/>
<!-- Illuminated sky-blue level fills --> <!-- Warm gold active level fills -->
<rect x="33.5" y="75" width="7.5" height="26" rx="3.75" fill="url(#track)"/> <rect x="33" y="56" width="10" height="42" rx="5" fill="url(#gold)"/>
<rect x="60.25" y="64" width="7.5" height="37" rx="3.75" fill="url(#track)"/> <rect x="59" y="44" width="10" height="54" rx="5" fill="url(#gold)"/>
<rect x="87" y="84" width="7.5" height="17" rx="3.75" fill="url(#track)"/> <rect x="85" y="70" width="10" height="28" rx="5" fill="url(#gold)"/>
<!-- Left fader cap --> <!-- Left fader cap (cx=38, cy=56) -->
<rect x="26.25" y="71.8" width="22" height="13.5" rx="3.5" fill="#06080e" opacity="0.58"/> <rect x="27" y="51" width="22" height="14" rx="7" fill="#07080b" opacity="0.55"/>
<rect x="26.25" y="69" width="22" height="13.5" rx="3.5" fill="url(#cap)"/> <rect x="27" y="49" width="22" height="14" rx="7" fill="url(#cap)"/>
<rect x="29.25" y="74.8" width="16" height="1.6" rx="0.8" fill="#1d2233" opacity="0.72"/> <rect x="33" y="55" width="10" height="2" rx="1" fill="#232632" opacity="0.26"/>
<rect x="29.25" y="76.4" width="16" height="0.8" rx="0.4" fill="#ffffff" opacity="0.7"/>
<!-- Center fader cap --> <!-- Center fader cap (cx=64, cy=44) -->
<rect x="53" y="60.8" width="22" height="13.5" rx="3.5" fill="#06080e" opacity="0.58"/> <rect x="53" y="39" width="22" height="14" rx="7" fill="#07080b" opacity="0.55"/>
<rect x="53" y="58" width="22" height="13.5" rx="3.5" fill="url(#cap)"/> <rect x="53" y="37" width="22" height="14" rx="7" fill="url(#cap)"/>
<rect x="56" y="63.8" width="16" height="1.6" rx="0.8" fill="#1d2233" opacity="0.72"/> <rect x="59" y="43" width="10" height="2" rx="1" fill="#232632" opacity="0.26"/>
<rect x="56" y="65.4" width="16" height="0.8" rx="0.4" fill="#ffffff" opacity="0.7"/>
<!-- Right fader cap --> <!-- Right fader cap (cx=90, cy=70) -->
<rect x="79.75" y="80.8" width="22" height="13.5" rx="3.5" fill="#06080e" opacity="0.58"/> <rect x="79" y="65" width="22" height="14" rx="7" fill="#07080b" opacity="0.55"/>
<rect x="79.75" y="78" width="22" height="13.5" rx="3.5" fill="url(#cap)"/> <rect x="79" y="63" width="22" height="14" rx="7" fill="url(#cap)"/>
<rect x="82.75" y="83.8" width="16" height="1.6" rx="0.8" fill="#1d2233" opacity="0.72"/> <rect x="85" y="69" width="10" height="2" rx="1" fill="#232632" opacity="0.26"/>
<rect x="82.75" y="85.4" width="16" height="0.8" rx="0.4" fill="#ffffff" opacity="0.7"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

@@ -1,17 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<!-- Console housing frame (pure filled path for clean GTK symbolic recolouring) --> <!-- Upper inactive fader segments -->
<path fill="#2e3436" fill-rule="evenodd" d="M 3.75 0.55 H 12.25 A 3.2 3.2 0 0 1 15.45 3.75 V 12.25 A 3.2 3.2 0 0 1 12.25 15.45 H 3.75 A 3.2 3.2 0 0 1 0.55 12.25 V 3.75 A 3.2 3.2 0 0 1 3.75 0.55 Z M 3.75 1.95 A 1.8 1.8 0 0 0 1.95 3.75 V 12.25 A 1.8 1.8 0 0 0 3.75 14.05 H 12.25 A 1.8 1.8 0 0 0 14.05 12.25 V 3.75 A 1.8 1.8 0 0 0 12.25 1.95 Z"/> <rect x="2.1" y="2" width="1.8" height="4.5" rx="0.9" fill="#2e3436" opacity="0.45"/>
<!-- Crescent moon and stereo meter bars --> <rect x="7.1" y="2" width="1.8" height="2.6" rx="0.9" fill="#2e3436" opacity="0.45"/>
<path d="M 6.0 3.2 A 1.75 1.75 0 1 0 6.0 6.4 A 1.35 1.35 0 1 1 6.0 3.2 Z" fill="#2e3436"/> <rect x="12.1" y="2" width="1.8" height="7.5" rx="0.9" fill="#2e3436" opacity="0.45"/>
<rect x="7.8" y="3.5" width="4.5" height="1.1" rx="0.55" fill="#2e3436" opacity="0.65"/> <!-- Lower active fader segments -->
<rect x="7.8" y="5.1" width="3.2" height="1.1" rx="0.55" fill="#2e3436" opacity="0.45"/> <rect x="2.1" y="7.5" width="1.8" height="6.5" rx="0.9" fill="#2e3436"/>
<!-- Three fader tracks --> <rect x="7.1" y="5.5" width="1.8" height="8.5" rx="0.9" fill="#2e3436"/>
<rect x="3.9" y="7.8" width="1.2" height="5" rx="0.6" fill="#2e3436" opacity="0.45"/> <rect x="12.1" y="10.5" width="1.8" height="3.5" rx="0.9" fill="#2e3436"/>
<rect x="7.4" y="7.8" width="1.2" height="5" rx="0.6" fill="#2e3436" opacity="0.45"/> <!-- Pill knob caps at staggered heights (cy=7, 5, 10) -->
<rect x="10.9" y="7.8" width="1.2" height="5" rx="0.6" fill="#2e3436" opacity="0.45"/> <rect x="0.9" y="5.7" width="4.2" height="2.6" rx="1.3" fill="#2e3436"/>
<!-- Staggered fader caps --> <rect x="5.9" y="3.7" width="4.2" height="2.6" rx="1.3" fill="#2e3436"/>
<rect x="3.0" y="9.4" width="3.0" height="1.8" rx="0.7" fill="#2e3436"/> <rect x="10.9" y="8.7" width="4.2" height="2.6" rx="1.3" fill="#2e3436"/>
<rect x="6.5" y="8.0" width="3.0" height="1.8" rx="0.7" fill="#2e3436"/>
<rect x="10.0" y="10.6" width="3.0" height="1.8" rx="0.7" fill="#2e3436"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 989 B