fix: 修复 Chrome 上录音按钮被 pointerleave 过早中断的问题
- 在 pointerdown 时调用 setPointerCapture 锁定指针事件 - 在 pointerup 时释放 pointer capture - 防止 async startRecording 期间 pointerleave 意外触发 stopRecording - mic-wrapper 添加 touch-action: none 防止浏览器拦截触摸
This commit is contained in:
@@ -198,6 +198,7 @@ header h1 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
#mic-btn {
|
||||
|
||||
Reference in New Issue
Block a user