From 2aa9e5a9608636e31125d85b1be38d3d60ff56a6 Mon Sep 17 00:00:00 2001 From: hazre Date: Wed, 18 Mar 2026 17:51:43 +0100 Subject: [PATCH] fix: allow stop button to work during mobile voice recording When recording on mobile, if the pointerup listener was lost (e.g., dragging off the button), there was no way to stop recording. Now the stop button's onClick handler works on mobile when recording is active, providing a fallback. --- src/app/features/room/RoomInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/features/room/RoomInput.tsx b/src/app/features/room/RoomInput.tsx index a79eb2be..70d7a92a 100644 --- a/src/app/features/room/RoomInput.tsx +++ b/src/app/features/room/RoomInput.tsx @@ -1246,7 +1246,7 @@ export const RoomInput = forwardRef( aria-label={showAudioRecorder ? 'Stop recording' : 'Record audio message'} aria-pressed={showAudioRecorder} onClick={() => { - if (mobileOrTablet()) return; + if (mobileOrTablet() && !showAudioRecorder) return; if (showAudioRecorder) { audioRecorderRef.current?.stop(); } else {