Intersection via orthographic camera

I use the orthographic camera in my project. My problem is with a raycaster. It’s working, but not correctly. The object picks not in all its width or height. Sometimes it works only with half of the object. But when I move camera via orbit control, raycaster works correctly. I forgot to say I use GPUpicker library

My project: https://alovert.ru

By default camera is perspective, to switch it to orthographic, please press ‘O’ on your keyboard.

To see the issue, you must click on the cube sides and on the small side of the beam. In this way, you add a new object to the scene. When you try to add the new object you can see that some piece of the object didn’t intersect until you move the camera. With perspective camera it works ok. I appreciate any help! enter image description here

My code intersection

    function onMouseClick(e) {
                e.preventDefault();

                mouse.x = e.clientX;
                mouse.y = e.clientY;
                var raymouse = new THREE.Vector2();
                raymouse.x = ( (event.clientX - renderer.domElement.offsetLeft) / renderer.domElement.width ) * 2 - 1;
                raymouse.y = - ( (event.clientY - renderer.domElement.offsetTop) / renderer.domElement.height ) * 2 + 1;

                raycaster.setFromCamera(raymouse, activeCamera);

                var intersect = gpuPicker.pick(mouse, raycaster);

it seems that the “near” parameter does not change when I set it to -1000, it is still 0

hi,
how you switch perspective camera to orthographic?