Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 5a6119d

Browse files
committed
fix: 🚑 Fix pressing back button in fullscreen exiting the player
fix #359
1 parent fad4bb2 commit 5a6119d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

NUXT/components/Player/index.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,9 @@ import fscontrols from "~/components/Player/fscontrols.vue";
354354
import fullscreen from "~/components/Player/fullscreen.vue";
355355
import progressbar from "~/components/Player/progressbar.vue";
356356
import sponsorblock from "~/components/Player/sponsorblock.vue";
357+
358+
import backType from "~/plugins/classes/backType";
359+
357360
export default {
358361
components: {
359362
sponsorblock,
@@ -683,6 +686,13 @@ export default {
683686
this.$vuetube.navigationBar.hide();
684687
this.$vuetube.statusBar.hide();
685688
this.isFullscreen = true;
689+
690+
//--- Fix pressing back button in fullscreen exiting the player ---//
691+
this.$vuetube.addBackAction(new backType(
692+
() => { this.exitFullscreen(true); },
693+
() => { return this.isFullscreen; }
694+
));
695+
686696
},
687697
getPlayer() {
688698
return this.$refs.player;

0 commit comments

Comments
 (0)