Skip to content

Fix dollying exception for ortho and frustum projections #547

@Amoki

Description

@Amoki

Describe the bug
Trying to pan in ortho mode throws an error.

Uncaught TypeError: transposedProjectMat.subarray is not a function
    at PanController._unproject (PanController.js:98)
    at PanController.dollyToCanvasPos (PanController.js:77)
    at Scene.<anonymous> (CameraUpdater.js:287)
    at Scene.fire (Component.js:326)
    at fireTickEvents (core.js:185)
    at frame (core.js:153)

To Reproduce
Steps to reproduce the behavior:

  1. Open o model in ortho projection
  2. Pan
  3. Check the console

Expected behavior
Be able to pan in ortho mode.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions