From e216b6caf4e6475160801cbfa6868069913e3704 Mon Sep 17 00:00:00 2001 From: Alexis Faizeau Date: Fri, 29 Oct 2021 15:23:09 +0200 Subject: [PATCH] Handle landscape mobile with cowebsite --- front/src/WebRtc/CoWebsiteManager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/src/WebRtc/CoWebsiteManager.ts b/front/src/WebRtc/CoWebsiteManager.ts index 444fe421..823e138b 100644 --- a/front/src/WebRtc/CoWebsiteManager.ts +++ b/front/src/WebRtc/CoWebsiteManager.ts @@ -163,7 +163,8 @@ class CoWebsiteManager { } private isSmallScreen(): boolean { - return window.matchMedia("(max-aspect-ratio: 1/1)").matches; + return window.matchMedia("(max-aspect-ratio: 1/1)").matches || + window.matchMedia("(max-width:960px) and (max-height:768px)").matches; } private initResizeListeners(touchMode: boolean) {