فهرست منبع

音频条判断暂停时间条件优化

natasha 1 ماه پیش
والد
کامیت
635f1d3412
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/views/book/courseware/preview/components/voice_matrix/components/AudioLine.vue

+ 2 - 2
src/views/book/courseware/preview/components/voice_matrix/components/AudioLine.vue

@@ -188,7 +188,7 @@ export default {
     });
     this.$refs[audioId].addEventListener('pause', () => {
       this.audio.playing = false;
-      if (this.hideSlider && this.audio.currentTime * 1000 + 500 > this.ed) {
+      if (this.hideSlider && this.audio.currentTime * 1000 + 5 > this.ed) {
         this.$emit('sentPause', true);
       }
       this.$emit('handleListenRead', false);
@@ -290,7 +290,7 @@ export default {
           }
         }, 50);
       } else if (this.hideSlider) {
-        if (this.audio.currentTime * 1000 + 500 > this.ed) {
+        if (this.audio.currentTime * 1000 + 5 > this.ed) {
           this.$refs[audioId].pause();
         }
       }