[fix](trx-frontend): retune center after bw edge drag

Co-authored-by: OpenAI Codex <codex@openai.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-04 22:25:39 +01:00
parent 0175b1c916
commit d6ad873bfe
@@ -6905,7 +6905,12 @@ if (spectrumCanvas) {
window.addEventListener("mouseup", async () => {
if (_bwDragEdge) {
try { await postPath(`/set_bandwidth?hz=${Math.round(currentBandwidthHz)}`); } catch (_) {}
try {
await postPath(`/set_bandwidth?hz=${Math.round(currentBandwidthHz)}`);
if (Number.isFinite(lastFreqHz)) {
await ensureTunedBandwidthCoverage(lastFreqHz, currentBandwidthHz);
}
} catch (_) {}
_bwDragEdge = null;
_bwDragCanvas = null;
return;