jscastro76 / threebox

A Three.js plugin for Mapbox GL JS, with support for animations and advanced 3D rendering.
Other
549 stars 145 forks source link

Example 19-fixedzoom scale not fixed initially #411

Open julianoes opened 10 months ago

julianoes commented 10 months ago

Describe the bug

When I first start the example 19-fixedzoom, the scale is not fixed initially. It only starts working once I deselect pan or change something else. I think that's because plane.fixedZoom is never set until changeScale() is called.

To Reproduce Steps to reproduce the behavior:

  1. Run example 19
  2. Try to zoom

Relevant Code or Code Sandbox

https://github.com/jscastro76/threebox/blob/b5473d7fbe3697ed1b125dc1e02836feeedafe3d/examples/19-fixedzoom.html#L147-L148