Raycaster no longer works

This is actually a duplicate of:

It’s unrelated to Raycaster. The problem is that your mousedown event listener does not fire anymore. You have to use the pointerdown event.