I found the Pointer-lock API which let's me lock the cursor and record the movement and used event.movementX/Y
instead of event.clientX/Y
. This makes you not run out of "screen real estate" and can rotate continuously.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…