Skip to content

WebXR Input: Switch on source handedness#40392

Merged
sideshowbarker merged 1 commit intomdn:mainfrom
dli7319:patch-1
Jul 17, 2025
Merged

WebXR Input: Switch on source handedness#40392
sideshowbarker merged 1 commit intomdn:mainfrom
dli7319:patch-1

Conversation

@dli7319
Copy link
Copy Markdown
Contributor

@dli7319 dli7319 commented Jul 16, 2025

Description

Adds a missing .handedness in the switch statement example:

  inputSourceList.forEach((source) => {
    switch (source.handedness) {
      case "left":
        leftHandSource = source;
        break;
      case "right":
        rightHandSource = source;
        break;
    }
  });

Motivation

Fix a typo in the example.

Additional details

https://www.w3.org/TR/webxr/#dom-xrinputsource-handedness

Related issues and pull requests

N/A

@dli7319 dli7319 requested a review from a team as a code owner July 16, 2025 18:57
@dli7319 dli7319 requested review from sideshowbarker and removed request for a team July 16, 2025 18:57
@github-actions github-actions bot added Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed labels Jul 16, 2025
@sideshowbarker sideshowbarker merged commit b9befb5 into mdn:main Jul 17, 2025
7 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

Preview URLs

@sideshowbarker
Copy link
Copy Markdown
Member

David, nice catch, and congrats on landing your first docs change here — welcome aboard 🎉

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

Labels

Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants