fix: 修复 Chrome 上录音按钮被 pointerleave 过早中断的问题

- 在 pointerdown 时调用 setPointerCapture 锁定指针事件
- 在 pointerup 时释放 pointer capture
- 防止 async startRecording 期间 pointerleave 意外触发 stopRecording
- mic-wrapper 添加 touch-action: none 防止浏览器拦截触摸
This commit is contained in:
2026-03-02 05:43:23 +08:00
parent 6c1b8e95c8
commit aaea414d5a
2 changed files with 4 additions and 0 deletions

View File

@@ -198,6 +198,7 @@ header h1 {
display: flex;
align-items: center;
justify-content: center;
touch-action: none;
}
#mic-btn {