Close full window properly to prevent scrolling issues
This commit is contained in:
parent
e1266ec675
commit
d52533b8c0
|
@ -17,6 +17,9 @@ export default Vue.extend({
|
||||||
'ft-card': FtCard
|
'ft-card': FtCard
|
||||||
},
|
},
|
||||||
beforeRouteLeave: function () {
|
beforeRouteLeave: function () {
|
||||||
|
if (this.player !== null) {
|
||||||
|
this.exitFullWindow()
|
||||||
|
}
|
||||||
if (this.player !== null && !this.player.isInPictureInPicture()) {
|
if (this.player !== null && !this.player.isInPictureInPicture()) {
|
||||||
this.player.dispose()
|
this.player.dispose()
|
||||||
this.player = null
|
this.player = null
|
||||||
|
@ -152,11 +155,15 @@ export default Vue.extend({
|
||||||
this.determineMaxFramerate()
|
this.determineMaxFramerate()
|
||||||
},
|
},
|
||||||
beforeDestroy: function () {
|
beforeDestroy: function () {
|
||||||
if (this.player !== null && !this.player.isInPictureInPicture()) {
|
if (this.player !== null) {
|
||||||
|
this.exitFullWindow()
|
||||||
|
|
||||||
|
if (!this.player.isInPictureInPicture()) {
|
||||||
this.player.dispose()
|
this.player.dispose()
|
||||||
this.player = null
|
this.player = null
|
||||||
clearTimeout(this.mouseTimeout)
|
clearTimeout(this.mouseTimeout)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initializePlayer: async function () {
|
initializePlayer: async function () {
|
||||||
|
|
Loading…
Reference in New Issue