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