Flycontrols gets stuck on yaw/pitch with mousedown.

Open
#410 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, three.js

Research direction

Start with the FlyControls implementation and review the suggested solution in pull request #406. Reproduce the mousedown yaw/pitch behavior described in the issue, then verify that releasing the mouse stops further yaw and pitch movement and that the control can be exited normally.

Written by the indexing model from the issue text.

Description

bug
  • three version: 0.173.0
  • @types/three version: 0.163.0
  • three-stdlib version: 2.35.6
Problem description:

When using Flycontrols and specifically using mousedown for yaw and pitch, the mouse can get "stuck" so that when released, mouse movement still cuases yaw and pitch. Its then impossible to get out of this mode.

Relevant code:
Suggested solution:

It seems the fix is straightforward here. See:
https://github.com/pmndrs/three-stdlib/pull/406

Dominant language
JavaScript
Stars
863
Forks
146
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pmndrs/three-stdlib

All issues in pmndrs/three-stdlib

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.