From 6819c0b108c1830abbb590631b12fdf9d4e34c07 Mon Sep 17 00:00:00 2001 From: advplyr Date: Tue, 29 Apr 2025 17:46:54 -0500 Subject: [PATCH] Fix player track tooltip overflowing on share player --- client/components/player/PlayerTrackBar.vue | 7 +++++++ client/pages/share/_slug.vue | 9 ++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/client/components/player/PlayerTrackBar.vue b/client/components/player/PlayerTrackBar.vue index cc581e25..6c96a6bf 100644 --- a/client/components/player/PlayerTrackBar.vue +++ b/client/components/player/PlayerTrackBar.vue @@ -74,6 +74,9 @@ export default { currentChapterStart() { if (!this.currentChapter) return 0 return this.currentChapter.start + }, + isMobile() { + return this.$store.state.globals.isMobile } }, methods: { @@ -145,6 +148,9 @@ export default { }) }, mousemoveTrack(e) { + if (this.isMobile) { + return + } const offsetX = e.offsetX const baseTime = this.useChapterTrack ? this.currentChapterStart : 0 @@ -198,6 +204,7 @@ export default { setTrackWidth() { if (this.$refs.track) { this.trackWidth = this.$refs.track.clientWidth + this.trackOffsetLeft = this.$refs.track.getBoundingClientRect().left } else { console.error('Track not loaded', this.$refs) } diff --git a/client/pages/share/_slug.vue b/client/pages/share/_slug.vue index bcc779d9..64c09963 100644 --- a/client/pages/share/_slug.vue +++ b/client/pages/share/_slug.vue @@ -1,5 +1,5 @@