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

explicitly use 'event' in onPointerUp #24708

Merged
merged 1 commit into from
Sep 28, 2022
Merged

explicitly use 'event' in onPointerUp #24708

merged 1 commit into from
Sep 28, 2022

Conversation

LukasSchmid97
Copy link
Contributor

The onPointerUp function did not explicitly require the event to be passed.
While it still was set at runtime, this patch clarifies the functions intent, asserts the local scope of the event variable, prevents future errors and satifies typescript checking.

@Mugen87 Mugen87 added this to the r145 milestone Sep 28, 2022
@Mugen87 Mugen87 merged commit 56fb2f7 into mrdoob:dev Sep 28, 2022
@LukasSchmid97 LukasSchmid97 deleted the dev-onPointerUp-Event branch September 28, 2022 13:59
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.

2 participants