finally fixed offset for mobile devices
This commit is contained in:
parent
5068d9fdcc
commit
f629ae2128
@ -134,10 +134,10 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
const svgResizeListener = () => {
|
const svgResizeListener = () => {
|
||||||
linesSVG?.setAttribute(
|
if (!linesSVG) return;
|
||||||
"viewBox",
|
const w = linesSVG.clientWidth;
|
||||||
`0 0 ${window.innerWidth} ${window.innerHeight}`,
|
const h = linesSVG.clientHeight;
|
||||||
);
|
linesSVG.setAttribute("viewBox", `0 0 ${w} ${h}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
svgResizeListener();
|
svgResizeListener();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user