Hi everyone, I am trying to create Screen Sizer (like the one Drei uses) in vanilla JS. I am on good track, but I have a problem where during resize position is wrong. If anyone can help that would be awesome. Here is the code. (I managed to fix it, it was stupid mistake on my part. I was setting canvas size to document.body.clientWidth instead of window.innerWidth)
codesandbox