Handle landscape mobile with cowebsite
This commit is contained in:
parent
68c626088d
commit
e216b6caf4
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue