You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When resizing the canvas, LayoutCamera displays the scene correctly. But pointer events are treated like the meshes exist within the original area of the canvas.
zArubaru
changed the title
[BUG] When reizing a canvas with a LayoutCamera, pointer events on meshes are aligned incorrectly.
[BUG] When resizing a canvas with a LayoutCamera, pointer events on meshes are aligned incorrectly.
Apr 15, 2024
2. Describe the bug
When resizing the canvas, LayoutCamera displays the scene correctly. But pointer events are treated like the meshes exist within the original area of the canvas.
3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
This was forked (updated packages to latest) and simplified from the Layout animations example on the framer motion website:
https://codesandbox.io/p/sandbox/framer-motion-3d-layoutcamera-forked-5lxprc
4. Steps to reproduce
Steps to reproduce the behavior:
<Camera />
, and see that then meshes get pointer events correctly.5. Expected behavior
We should get "hovering over sphere" in console, when hovering over black ball, in both states.
7. Environment details
MacOS / Arc (Chromium Webkit)
The text was updated successfully, but these errors were encountered: