mirror of
https://github.com/VueTubeApp/VueTube
synced 2025-01-06 23:51:13 +00:00
fix: 🚑 Fix pressing back button in fullscreen exiting the player
fix #359
This commit is contained in:
parent
fad4bb27dd
commit
5a6119d5d4
1 changed files with 10 additions and 0 deletions
|
@ -354,6 +354,9 @@ import fscontrols from "~/components/Player/fscontrols.vue";
|
|||
import fullscreen from "~/components/Player/fullscreen.vue";
|
||||
import progressbar from "~/components/Player/progressbar.vue";
|
||||
import sponsorblock from "~/components/Player/sponsorblock.vue";
|
||||
|
||||
import backType from "~/plugins/classes/backType";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
sponsorblock,
|
||||
|
@ -683,6 +686,13 @@ export default {
|
|||
this.$vuetube.navigationBar.hide();
|
||||
this.$vuetube.statusBar.hide();
|
||||
this.isFullscreen = true;
|
||||
|
||||
//--- Fix pressing back button in fullscreen exiting the player ---//
|
||||
this.$vuetube.addBackAction(new backType(
|
||||
() => { this.exitFullscreen(true); },
|
||||
() => { return this.isFullscreen; }
|
||||
));
|
||||
|
||||
},
|
||||
getPlayer() {
|
||||
return this.$refs.player;
|
||||
|
|
Loading…
Reference in a new issue