From d6ad873bfed8910efa0b76db71d8bf02e66e2d93 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Wed, 4 Mar 2026 22:25:39 +0100 Subject: [PATCH] [fix](trx-frontend): retune center after bw edge drag Co-authored-by: OpenAI Codex Signed-off-by: Stan Grams --- .../trx-frontend/trx-frontend-http/assets/web/app.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js index e31b3d3..db73129 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js @@ -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;