From 097f38001543c3e59a803b8b8fd01ef4e3572035 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 30 Apr 2021 19:11:14 +0200 Subject: last minute mobile fixes --- frontend/site/projects/museum/views/titles.overlay.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'frontend/site/projects/museum/views/titles.overlay.js') diff --git a/frontend/site/projects/museum/views/titles.overlay.js b/frontend/site/projects/museum/views/titles.overlay.js index 32e7344..5c51924 100644 --- a/frontend/site/projects/museum/views/titles.overlay.js +++ b/frontend/site/projects/museum/views/titles.overlay.js @@ -68,6 +68,11 @@ class TitlesOverlay extends Component { const { page_name } = this.props.match.params clearTimeout(this.titleTimeout) this.props.audio.player.stop("text-overlay") + if (isMobile) { + setTimeout(() => { + actions.site.setPopups({ text: true }) + }, 100) + } if (SUBTITLES[page_name]) { this.setState({ content: SUBTITLES[page_name], @@ -75,9 +80,6 @@ class TitlesOverlay extends Component { showVideo: false, }) setTimeout(SUBTITLES[page_name].headphones ? this.showHeadphones : this.showTitle, 0) - if (isMobile) { - actions.site.setPopups({ text: true }) - } } else { this.setState({ content: null, -- cgit v1.2.3-70-g09d2