Skip to content

Commit 7fdb2f2

Browse files
committed
Require mouseActive for the pointer to be lockable
1 parent 224375e commit 7fdb2f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/screens/home/displays/DisplayView.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export function DisplayView() {
302302
width={width}
303303
className="rounded-xl"
304304
cursor={mouseActive ? 'crosshair' : undefined}
305-
isPointerLockable={inputConfig.pointerLockable}
305+
isPointerLockable={mouseActive && inputConfig.pointerLockable}
306306
onMouseDown={onMouseDown}
307307
onMouseUp={onMouseUp}
308308
onMouseDrag={onMouseDown}

0 commit comments

Comments
 (0)