drei icon indicating copy to clipboard operation
drei copied to clipboard

TrackballControls do not work with frameloop="demand"

Open nermolov opened this issue 3 years ago • 0 comments

  • three version: 0.136.0
  • @react-three/fiber version: 7.0.24
  • @react-three/drei version: 8.3.1

Problem description:

Unlike OrbitControls, TrackballControls doesn't seem to invalidate the frame and thus doesn't trigger rendering with frameloop="demand"

Relevant code:

https://codesandbox.io/s/agitated-pascal-nvw2m?file=/src/App.js

Suggested solution:

I tried using the experimental CameraControls.TrackballControls as #171 suggested that solves this issue, but couldn't get that working either.

nermolov avatar Dec 29 '21 18:12 nermolov