fix circles position on ios safari are shifted by url bar

This commit is contained in:
schlagmichdoch 2023-03-03 12:03:20 +01:00
parent 3a2d8c75f7
commit d244f5fa47
2 changed files with 4 additions and 4 deletions

View file

@ -1779,8 +1779,8 @@ Events.on('load', () => {
let x0, y0, w, h, dw, offset; let x0, y0, w, h, dw, offset;
function init() { function init() {
w = window.innerWidth; w = document.documentElement.clientWidth;
h = window.innerHeight; h = document.documentElement.clientHeight;
c.width = w; c.width = w;
c.height = h; c.height = h;
offset = $$('footer').offsetHeight - 32; offset = $$('footer').offsetHeight - 32;

View file

@ -1780,8 +1780,8 @@ Events.on('load', () => {
let x0, y0, w, h, dw, offset; let x0, y0, w, h, dw, offset;
function init() { function init() {
w = window.innerWidth; w = document.documentElement.clientWidth;
h = window.innerHeight; h = document.documentElement.clientHeight;
c.width = w; c.width = w;
c.height = h; c.height = h;
offset = $$('footer').offsetHeight - 32; offset = $$('footer').offsetHeight - 32;