fix: 移动端无法长按录音的问题

This commit is contained in:
kuaifan 2023-05-08 22:57:25 +08:00
parent 003b52fbc9
commit f1d267e2b2

View File

@ -912,7 +912,7 @@ export default {
this.touchLimitX = false;
this.touchLimitY = false;
this.touchStart = event.type === "touchstart" ? event.touches[0] : event;
if (event.button === 0 && this.startRecord()) {
if ((event.button === undefined || event.button === 0) && this.startRecord()) {
return;
}
break;