mirror of https://github.com/jetkvm/kvm.git
Merge a741bbe7e3 into 31ea366e51
This commit is contained in:
commit
80283d2d1f
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue