Skip to content

OrbitControls update event always fired if using an Orthographic Camera #27280

@jedleslie

Description

@jedleslie

Description

Hi Three Team -

Just ran across this and am not sure if it's an issue or not. I have an app that uses both ortho and perspective cameras along with OrbitControls. I have the OrbitControls update() in my render loop because I am using dampening. I also have an event listener or the change event of OrbitControls.

When I'm in perspective camera, I see the change event being fired only when I'm actually orbiting around the scene. In orthographic mode I see it firing every time the render loop calls update().

Maybe this is by design and part of how ortho cameras need to work. Just though I'd let you know.

Reproduction steps

  1. Create a scene and add orthographic and perspective cameras. Add the orbit controls.
  2. Add an event handler on the change event for OrbitControls.
  3. Swap between the two cameras and watch it fire constantly when in orthographic mode, and only when the orbit controls are firing when in perspective.

Code

// code goes here

Live example

Screenshots

No response

Version

0.158

Device

Desktop

Browser

Chrome

OS

MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions