chore: release v0.22.9

This commit is contained in:
2026-08-02 06:40:10 +02:00
parent 296a4a55c0
commit f6cd6e999a
38 changed files with 1308 additions and 297 deletions
-7
View File
@@ -149,13 +149,6 @@ function Slider({ value, onChange, disabled, accent = 'var(--primary)', min = 0,
if (!el) return;
const onWheel = (e: WheelEvent) => {
if (disRef.current) return;
// The wheel only acts on a slider the operator has DELIBERATELY taken
// hold of — one that has focus. Hovering was enough before, so scrolling
// the panel with the pointer anywhere over these controls silently moved
// whatever sat under it: an IC-7800 owner watched his transmit power
// change on its own. Without focus the event is left alone and the panel
// scrolls, which is what the gesture was for.
if (document.activeElement !== el) return;
e.preventDefault();
const nv = Math.max(minRef.current, Math.min(maxRef.current, valRef.current + (e.deltaY < 0 ? 1 : -1)));
if (nv !== valRef.current) cbRef.current(nv);