Skip to content

Conversation

@jbaicoianu
Copy link
Contributor

Attempting to interact with TransformControls when pointerlock is already active in your app throws the following error:

Uncaught DOMException: Failed to execute 'setPointerCapture' on 'Element': InvalidStateError at TransformControls.onPointerDown

This patch skips the attempt to call this.domElement.setPointerCapture( event.pointerId ) if pointerlock is already active

@mrdoob
Copy link
Owner

mrdoob commented Dec 21, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants