From 5c2e3609495b98326ad72e52674fbce660b2d5c3 Mon Sep 17 00:00:00 2001 From: AgustinSRG Date: Wed, 14 Aug 2024 15:49:24 +0200 Subject: [PATCH] Do not auto hide config when leaving the player This could cause issues when moving the mouse too fast --- frontend/src/components/player/AudioPlayer.vue | 3 +-- frontend/src/components/player/ImagePlayer.vue | 1 - frontend/src/components/player/VideoPlayer.vue | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/player/AudioPlayer.vue b/frontend/src/components/player/AudioPlayer.vue index cd5de43a..dba4688a 100644 --- a/frontend/src/components/player/AudioPlayer.vue +++ b/frontend/src/components/player/AudioPlayer.vue @@ -890,11 +890,10 @@ export default defineComponent({ mouseLeavePlayer: function () { this.timelineGrabbed = false; - if (!this.playing || this.expandedTitle || this.expandedAlbum) return; + if (!this.playing || this.expandedTitle || this.expandedAlbum || this.displayConfig) return; this.showControls = false; this.volumeShown = isTouchDevice(); this.helpTooltip = ""; - this.displayConfig = false; }, tick() { diff --git a/frontend/src/components/player/ImagePlayer.vue b/frontend/src/components/player/ImagePlayer.vue index 5a4346d1..693f9320 100644 --- a/frontend/src/components/player/ImagePlayer.vue +++ b/frontend/src/components/player/ImagePlayer.vue @@ -707,7 +707,6 @@ export default defineComponent({ }, mouseLeavePlayer: function () { this.helpTooltip = ""; - this.displayConfig = false; }, tick() { diff --git a/frontend/src/components/player/VideoPlayer.vue b/frontend/src/components/player/VideoPlayer.vue index 2aaa53f8..0c3659ed 100644 --- a/frontend/src/components/player/VideoPlayer.vue +++ b/frontend/src/components/player/VideoPlayer.vue @@ -1058,11 +1058,10 @@ export default defineComponent({ mouseLeavePlayer: function () { this.timelineGrabbed = false; - if (!this.playing || this.expandedTitle || this.expandedAlbum) return; + if (!this.playing || this.expandedTitle || this.expandedAlbum || this.displayConfig) return; this.showControls = false; this.volumeShown = isTouchDevice(); this.helpTooltip = ""; - this.displayConfig = false; }, tick() {