mirror of
https://github.com/RobinLinus/snapdrop.git
synced 2025-05-15 23:20:11 -07:00
Fix bug in offset
This commit is contained in:
parent
94b2566685
commit
14ead247ed
@ -563,7 +563,7 @@ Events.on('load', () => {
|
|||||||
c.width = w;
|
c.width = w;
|
||||||
c.height = h;
|
c.height = h;
|
||||||
let offset = h > 380 ? 100 : 65;
|
let offset = h > 380 ? 100 : 65;
|
||||||
offset = h > 800 ? 116 : h;
|
offset = h > 800 ? 116 : offset;
|
||||||
x0 = w / 2;
|
x0 = w / 2;
|
||||||
y0 = h - offset;
|
y0 = h - offset;
|
||||||
dw = Math.max(w, h, 1000) / 13;
|
dw = Math.max(w, h, 1000) / 13;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user