I'm trying to get the touch position with and i got it this way:
r.addEventListener('pointerdown', (e) => {console.log(e.clientX); console.log(e.clientY)});
But that doesn't work for what I want. Because those coordinates are relative to the client page, and I need to convert them to the REAL viewport size. What do I mean by real is that my viewport has for example 320x240 standard, but it scales, and I can't find where the size of the viewport is in run time with the current scaling.
Can anyone point me where I can find it ?
Thanks :D