liushengqiang 1 year ago
parent
commit
e591979a97
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/views/courseware-play/component/video-item/index.tsx

+ 8 - 1
src/views/courseware-play/component/video-item/index.tsx

@@ -208,7 +208,14 @@ export default defineComponent({
           class={[styles.controls, props.showModel ? '' : styles.hide]}
           onClick={(e: Event) => {
             e.stopPropagation();
-          }}>
+            if(videoItem.value.paused()) return
+            emit('close')
+          }} 
+          onTouchmove={(e: Event) => {
+            if(videoItem.value.paused()) return
+            emit('close')
+          }}
+          >
           <div class={styles.time}>
             <div>{getSecondRPM(data.currentTime)}</div>
             <div>{getSecondRPM(data.duration)}</div>