audio: align master-volume feedback tone and quiet chat history navigation

This commit is contained in:
Jage9
2026-02-22 18:38:11 -05:00
parent f2734659d2
commit ee0b98290e
2 changed files with 9 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
// Maintainer-controlled web client version.
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
window.CHGRID_WEB_VERSION = "2026.02.22 R163";
window.CHGRID_WEB_VERSION = "2026.02.22 R164";
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
window.CHGRID_TIME_ZONE = "America/Detroit";

View File

@@ -573,7 +573,13 @@ function navigateChatBuffer(target: 'prev' | 'next' | 'first' | 'last'): void {
}
updateStatus(messageBuffer[messageCursor]);
if (target === 'prev' || target === 'next') {
const atStart = messageCursor === 0;
const atEnd = messageCursor === messageBuffer.length - 1;
if (atStart || atEnd) {
audio.sfxUiBlip();
}
}
}
/** Updates compact input/output device summary labels in the pre-connect UI. */
@@ -1288,7 +1294,7 @@ function handleNormalModeInput(code: string, shiftKey: boolean): void {
const next = audio.adjustMasterVolume(step);
persistMasterVolume(next);
updateStatus(`Master volume ${next}`);
audio.sfxUiBlip();
audio.sfxEffectLevel(next === 50);
return;
}
case 'openEffectSelect': {