Previously, we resized our scene to fit the smaller screen proportions associated with phones and tablets. However, you may have noticed, when testing on an actual mobile device, the globe doesn't spin like it does on desktop.
In this video, we'll cover how to add mobile event listeners to our project so we can reobtain the spin effect on mobile.
The step-by-step process will be:
Add event listeners
raycasterintersects with sphere
If length is greater than 0, set
passive: falseif needed
mouse.down, prevent default and spin
Test on a mobile phone