fix circles position on ios safari are shifted by url bar
This commit is contained in:
parent
3a2d8c75f7
commit
d244f5fa47
2 changed files with 4 additions and 4 deletions
|
@ -1779,8 +1779,8 @@ Events.on('load', () => {
|
|||
let x0, y0, w, h, dw, offset;
|
||||
|
||||
function init() {
|
||||
w = window.innerWidth;
|
||||
h = window.innerHeight;
|
||||
w = document.documentElement.clientWidth;
|
||||
h = document.documentElement.clientHeight;
|
||||
c.width = w;
|
||||
c.height = h;
|
||||
offset = $$('footer').offsetHeight - 32;
|
||||
|
|
|
@ -1780,8 +1780,8 @@ Events.on('load', () => {
|
|||
let x0, y0, w, h, dw, offset;
|
||||
|
||||
function init() {
|
||||
w = window.innerWidth;
|
||||
h = window.innerHeight;
|
||||
w = document.documentElement.clientWidth;
|
||||
h = document.documentElement.clientHeight;
|
||||
c.width = w;
|
||||
c.height = h;
|
||||
offset = $$('footer').offsetHeight - 32;
|
||||
|
|
Loading…
Reference in a new issue