From 9ece4d658dd067852e24563495c63bb4f48d8d09 Mon Sep 17 00:00:00 2001 From: Smittix Date: Mon, 23 Feb 2026 23:20:21 +0000 Subject: [PATCH] Recenter capture for shared monitor tune clicks --- static/js/modes/waterfall.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/modes/waterfall.js b/static/js/modes/waterfall.js index f90d817..af3db1c 100644 --- a/static/js/modes/waterfall.js +++ b/static/js/modes/waterfall.js @@ -1878,7 +1878,10 @@ const Waterfall = (function () { const activeSpan = Number.isFinite(currentSpan) && currentSpan > 0 ? currentSpan : configuredSpan; const edgeMargin = activeSpan * 0.08; const withinCapture = clamped >= (_startMhz + edgeMargin) && clamped <= (_endMhz - edgeMargin); - const needsRetune = !withinCapture; + const sharedMonitor = _isSharedMonitorActive(); + // Shared-IQ monitor retunes are most reliable when we recenter + // capture on the requested frequency, not only at the edges. + const needsRetune = !withinCapture || sharedMonitor; if (needsRetune) { _startMhz = clamped - configuredSpan / 2; @@ -1888,7 +1891,6 @@ const Waterfall = (function () { _updateFreqDisplay(); } - const sharedMonitor = _isSharedMonitorActive(); if (_monitoring) { if (!sharedMonitor) { _queueMonitorRetune(immediate ? 35 : 140);