Handle landscape mobile with cowebsite

This commit is contained in:
Alexis Faizeau 2021-10-29 15:23:09 +02:00
parent 68c626088d
commit e216b6caf4

View File

@ -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) {