Improve appearance on mobile

This commit is contained in:
KatieFrogs
2022-02-26 00:05:43 +03:00
parent 7372b617b0
commit d44a4a1ce2
4 changed files with 103 additions and 71 deletions

View File

@@ -38,7 +38,8 @@ function toggleFullscreen(){
}
function resizeRoot(){
if(lastHeight !== innerHeight){
if((noResizeRoot ? lastWidth !== innerWidth : true) && lastHeight !== innerHeight){
lastWidth = innerWidth
lastHeight = innerHeight
root.style.height = innerHeight + "px"
}
@@ -70,6 +71,7 @@ var snd = {}
var p2
var disableBlur = false
var cancelTouch = true
var lastWidth
var lastHeight
var debugObj = {
state: "closed",
@@ -92,6 +94,7 @@ var account = {}
var gpicker
var db
var plugins
var noResizeRoot = false
pageEvents.add(root, ["touchstart", "touchmove", "touchend"], event => {
if(event.cancelable && cancelTouch && event.target.tagName !== "SELECT"){