Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controls: Make use of setPointerCapture(). #22118

Merged
merged 1 commit into from
Jul 12, 2021
Merged

Controls: Make use of setPointerCapture(). #22118

merged 1 commit into from
Jul 12, 2021

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Jul 12, 2021

Related issue: Fixed #20217.

Description

OrbitControls, TrackballControls and TransformControls make now use of setPointerCapture() and releasePointerCapture() in order to avoid the workaround with ownerDocument.

setPointerCapture() is a method from the pointer events API and ensures that an element can receive pointer events even though the pointer moved off it.

@mrdoob
Copy link
Owner

mrdoob commented Jul 12, 2021

TIL about setPointerCapture() 😮

@mrdoob mrdoob added this to the r131 milestone Jul 12, 2021
@mrdoob mrdoob merged commit 3b8cade into mrdoob:dev Jul 12, 2021
@mrdoob
Copy link
Owner

mrdoob commented Jul 12, 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.

Implement controls with pointerEvents
2 participants