[feat](trx-frontend-http): sync frequency input wheel with jog control
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
@@ -810,6 +810,11 @@ freqEl.addEventListener("keydown", (e) => {
|
|||||||
applyFreqFromInput();
|
applyFreqFromInput();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
freqEl.addEventListener("wheel", (e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
const direction = e.deltaY < 0 ? 1 : -1;
|
||||||
|
jogFreq(direction);
|
||||||
|
}, { passive: false });
|
||||||
|
|
||||||
// --- Jog wheel ---
|
// --- Jog wheel ---
|
||||||
const jogWheel = document.getElementById("jog-wheel");
|
const jogWheel = document.getElementById("jog-wheel");
|
||||||
|
|||||||
@@ -227,7 +227,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="tab-about" class="tab-panel" style="display:none;">
|
<div id="tab-about" class="tab-panel" style="display:none;">
|
||||||
<table class="about-table">
|
<table class="about-table">
|
||||||
<tr><td>Server</td><td id="about-server-ver">--</td></tr>
|
<tr><td>Server version</td><td id="about-server-ver">--</td></tr>
|
||||||
<tr><td>Server address</td><td id="about-server-addr">--</td></tr>
|
<tr><td>Server address</td><td id="about-server-addr">--</td></tr>
|
||||||
<tr><td>Server callsign</td><td id="about-server-call">--</td></tr>
|
<tr><td>Server callsign</td><td id="about-server-call">--</td></tr>
|
||||||
<tr><td>Rig</td><td id="about-rig-info">--</td></tr>
|
<tr><td>Rig</td><td id="about-rig-info">--</td></tr>
|
||||||
@@ -237,7 +237,7 @@
|
|||||||
<tr><td>Rigctl endpoint</td><td id="about-rigctl-endpoint">--</td></tr>
|
<tr><td>Rigctl endpoint</td><td id="about-rigctl-endpoint">--</td></tr>
|
||||||
<tr><td>Rigctl clients</td><td id="about-rigctl-clients">--</td></tr>
|
<tr><td>Rigctl clients</td><td id="about-rigctl-clients">--</td></tr>
|
||||||
<tr><td>PSK Reporter</td><td id="about-pskreporter">--</td></tr>
|
<tr><td>PSK Reporter</td><td id="about-pskreporter">--</td></tr>
|
||||||
<tr><td>Client</td><td>{pkg} v{ver}</td></tr>
|
<tr><td>Client version</td><td>{pkg} v{ver}</td></tr>
|
||||||
<tr><td>Connected clients</td><td id="about-clients">--</td></tr>
|
<tr><td>Connected clients</td><td id="about-clients">--</td></tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user