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

Raycast/mouseover event on model when transitioning mapbox camera with padding #399

Open quangIle opened 1 year ago

quangIle commented 1 year ago

Describe the bug The raycast on model does not update when camera is transitioned with padding

To Reproduce Example code: https://codepen.io/quangIle/pen/yLQvBLz

map.flyTo({
    center: origin,
    zoom: 17,
    // check here
    padding: {
      top: 100,
      left: 100,
      // top: 0,
      // left: 0,
      right: 0,
      bottom: 0
    }
  });