Stop dragging Pro Mode ™️ gain blocking keyboard.

This commit is contained in:
Matthew Stratford 2020-10-27 21:43:44 +00:00
parent 529f86bcc6
commit a512f1ac31
No known key found for this signature in database
GPG key ID: 9E53C8B3F0B57395

View file

@ -35,9 +35,10 @@ export default function ProModeButtons({ channel }: { channel: number }) {
max={12}
step={0.2}
value={trimVal.toFixed(1)}
onChange={(e) =>
dispatch(setChannelTrim(channel, parseFloat(e.target.value)))
}
onChange={(e) => {
dispatch(setChannelTrim(channel, parseFloat(e.target.value)));
e.target.blur(); // Stop dragging from disabling the keyboard triggers.
}}
/>
<b>{trimVal} dB</b>
</>