mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-05-23 12:34:42 +00:00
fix circles position on ios safari are shifted by url bar
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user