Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
quangIle opened this issue Jul 13, 2023 · 0 comments
Labels
🪲 bug Something isn't working

Comments

@quangIle
Copy link

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

  • Zero padding (correct raycaster):
    image

  • Padding top and left (my mouse did not moveover the model):
    image

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
    }
  });
@quangIle quangIle added the 🪲 bug Something isn't working label Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant