Skip to content

Commit f3daf0a

Browse files
committed
fix browser warning
1 parent e56dbea commit f3daf0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/lib/PointerLockControls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class PointerLockControls {
123123

124124
};
125125

126-
document.addEventListener( 'mousemove', onMouseMove, false );
126+
document.addEventListener( 'mousemove', onMouseMove, {capture: false, passive: false} );
127127
document.addEventListener( 'keydown', onKeyDown, false );
128128
document.addEventListener( 'keyup', onKeyUp, false );
129129

0 commit comments

Comments
 (0)