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 using react three fiber with the frameloop set to demand and the Drei CameraControls. Dragging around works great however if you use controls functions like .rotate and .zoomTo the first few frames are skipped and the animation just jumps.
I've tried manually invalidating as per the r3f docs by adding an event listener to both the update and control event however neither fixed the issue.
Describe the bug
When using react three fiber with the frameloop set to
demand
and the Drei CameraControls. Dragging around works great however if you use controls functions like.rotate
and.zoomTo
the first few frames are skipped and the animation just jumps.I've tried manually invalidating as per the r3f docs by adding an event listener to both the
update
andcontrol
event however neither fixed the issue.To Reproduce
Steps to reproduce the behavior:
Code
No response
Live example
https://codesandbox.io/p/sandbox/cameracontrols-basic-forked-tf9tct?file=%2Fsrc%2FApp.js%3A13%2C11
Expected behavior
I'd expect the animation to run nicely regardless of if the frameloop is running or not
Screenshots or Video
No response
Device
Desktop
OS
MacOS
Browser
Chrome
The text was updated successfully, but these errors were encountered: