From d324bdcf73fce0dc41eda892192a9054104b41fc Mon Sep 17 00:00:00 2001 From: Nikita Krupin Date: Wed, 8 Jun 2022 21:17:42 -0400 Subject: [PATCH] controls handler & fullscreen scrubbing bugfix --- NUXT/components/Player/index.vue | 17 +++++++---------- android/.idea/deploymentTargetDropDown.xml | 17 +++++++++++++++++ 2 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 android/.idea/deploymentTargetDropDown.xml diff --git a/NUXT/components/Player/index.vue b/NUXT/components/Player/index.vue index d00251f..e891daa 100644 --- a/NUXT/components/Player/index.vue +++ b/NUXT/components/Player/index.vue @@ -69,16 +69,12 @@
- mdi-rewind + mdi-rewind Doubletap left or right to skip 10 seconds - mdi-fast-forward + mdi-fast-forward
@@ -135,7 +131,7 @@ v-if="$refs.player" :video="$refs.player" @pause="$refs.player.pause()" - @play="$refs.player.play(), (controls = false)" + @play="$refs.player.play(), controlsHandler()" /> mdi-skip-next @@ -369,12 +365,13 @@ export default { this.$refs.player.currentTime += time; }, + // TODO: fix dis controlsHandler() { if (!this.seeking) this.controls ? (clearTimeout(this.controls), (this.controls = false)) : setTimeout(() => { - if (!this.skipping) { + if (!this.seeking) { this.controls = setTimeout(() => { this.controls = false; }, 2345); diff --git a/android/.idea/deploymentTargetDropDown.xml b/android/.idea/deploymentTargetDropDown.xml new file mode 100644 index 0000000..c324e40 --- /dev/null +++ b/android/.idea/deploymentTargetDropDown.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file