Closed wx85745997 closed 2 years ago
window.addEventListener("resize", () => { if (document.querySelector("video")) { let video = document.querySelector("video"); let top = video.style.top; console.log("video", video); console.log("top", top); let canvas = document.querySelector("canvas"); canvas.style.top = top; } });
It works for me.
emmm.. like this how can i fix it.