chore: release v0.22.9
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user