Skip to content

Commit

Permalink
Do not auto hide config when leaving the player
Browse files Browse the repository at this point in the history
This could cause issues when moving the mouse too fast
  • Loading branch information
AgustinSRG committed Aug 14, 2024
1 parent b0e2cb3 commit 5c2e360
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/player/AudioPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/player/ImagePlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,6 @@ export default defineComponent({
},
mouseLeavePlayer: function () {
this.helpTooltip = "";
this.displayConfig = false;
},
tick() {
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/components/player/VideoPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 5c2e360

Please sign in to comment.