This commit is contained in:
Tom Wopat 2025-11-06 21:55:06 +01:00 committed by GitHub
commit e88108c8c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ export default function WebRTCVideo({ hasConnectionIssues }: { hasConnectionIssu
}); });
if (isRelativeMouseMode) { if (isRelativeMouseMode) {
videoElmRefValue.addEventListener("click", containerRef.current?.addEventListener("click",
() => { () => {
if (isPointerLockPossible && !isPointerLockActive && !document.pointerLockElement) { if (isPointerLockPossible && !isPointerLockActive && !document.pointerLockElement) {
requestPointerLock(); requestPointerLock();