Skip to content

OrbitControls: zoomToCursor weird behavior after certain rotations. #27110

@alessiocancian

Description

@alessiocancian

Description

I found this using zoomToCursor enabled with screenSpacePanning set to false, after certain rotations the zoom to cursor become inconsistent and sometimes goes back to normal after rotating again.
I was able to reproduce this in the map controls example too.

Reproduction steps

  1. go to map example
  2. enable zoomToCursor
  3. change rotation to go the lowest possible in the city (there may be other ways but this make it happen consistently)
  4. try to zoom

Code

https://threejs.org/examples/#misc_controls_map

Live example

https://threejs.org/examples/#misc_controls_map

Screenshots

bug-map-1.mov

Version

r158

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