chore: release v0.22.9
This commit is contained in:
@@ -125,13 +125,6 @@ function Slider({ value, onChange, disabled, accent = '#2563eb', step = 1 }: {
|
||||
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 d = e.deltaY < 0 ? stepRef.current : -stepRef.current;
|
||||
const nv = Math.max(0, Math.min(100, valRef.current + d));
|
||||
|
||||
Reference in New Issue
Block a user