Skip to content

fix(Manipulators): remove errors in KeyboardCameraManipulator example - #3687

Merged
finetjul merged 1 commit into
Kitware:masterfrom
zzoraemon043:fix/keyboard-camera-manipulator-errors
Oct 19, 2026
Merged

finetjul merged 1 commit into
Kitware:masterfrom
zzoraemon043:fix/keyboard-camera-manipulator-errors

Conversation

@zzoraemon043

Copy link
Copy Markdown
Contributor

Context

fix #3660

The KeyboardCameraManipulator example throws on click and on key release.

Results

  • Clicking the view no longer throws publicAPI.startPointerLockInteraction is not a function. Mouse look works the same, it already comes from onMouseMove reading movementX / movementY while the pointer is locked.
  • Releasing a key no longer throws model._interactor is undefined, and the animation request is canceled.

Changes

  • KeyboardCameraManipulator: endMovement uses model.interactor, which is what onKeyDown sets.
  • MouseCameraTrackballFirstPersonManipulator: onButtonDown only requests the pointer lock and no longer calls the missing startPointerLockInteraction.
  • Added KeyboardCameraManipulator/test/testKeyboardCameraManipulator.js (key down then key up, fails before the change).

No API changes.

PR Checklist

  • GitHub Actions CI passed: semantic-release commit messages, lint, and tests
  • Test coverage added
  • Documentation and TypeScript definitions are updated to match these changes

@finetjul
finetjul requested a review from Jo-Byr October 19, 2026 06:54
@finetjul

Copy link
Copy Markdown
Member

@Jo-Byr you are the one who removed startPointerLockInteraction()

572238a

@Jo-Byr

Jo-Byr commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

LGTM

@finetjul
finetjul added this pull request to the merge queue Oct 19, 2026
Merged via the queue into Kitware:master with commit 07137fa Oct 19, 2026
4 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 37.4.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions Bot added the released Automated label label Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Automated label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] KeyboardCameraManipulator: console errors

3 participants