Pointer coordinate on mobile device

hello

how can get the pointer coordinate for use in raycasting ,
in desktop computer i can get with event and capture the mouse position
but when i using mobile its undefined

renderer.domElement.addEventListener( ‘touchstart’,raycaster_large_image_gallery_process, false );
mouse.x = ( e.clientX / window.innerWidth ) * 2 - 1;
mouse.y = - ( e.clientY / window.innerHeight ) * 2 + 1;

thanks

Try it with:

const clientX = event.touches[0].clientX;
const clientY = event.touches[0].clientY;
1 Like

thanks, works great