Skip to content

Camera jumps when zooming with tracked entity #12812

@javagl

Description

@javagl

What happened?

When using the mouse wheel to zoom in and out with a viewer.trackedEntity, the camera can jump around unpredictably.

Reproduction steps

I noticed this in the 3D Models sandcastle

  1. Open https://sandcastle.cesium.com/index.html?src=3D%20Models.html
  2. Rotate the camera slightly with a left-mouse-drag, upwards, by maybe 30°, to view the plane nearly from the front
  3. Move the cursor slightly below the plane, and rotate the mouse wheel up (to zoom in)

The camera "snaps", the entity (plane) is no longer "tracked", and the camera behaves erratically afterwards.

Image

Sandcastle example

See above

Environment

Browser: N/A
CesiumJS Version: 1.132, but checked that it also happened as early as 1.112 !
Operating System: N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions