1

I've noticed in V9 of drei there is a bug when combing the <Html> elment with <ScrollControls>.

I just want bind text to a 3D element but the ScrollControll makes the text scroll out of the view: CodeSandBox Example

It works fine in v8: CodeSandBox Example

Luhn
  • 706
  • 6
  • 15

1 Answers1

1

I fixed this in this PR https://github.com/pmndrs/drei/pull/1126 we just have to wait until they approve it. But you can just patch the library yourself using https://www.npmjs.com/package/patch-package, it should be easy as it is just one line change.

Edit: Now that I think about it, you could probably fix it also by sending gl.domElement.parentNode as the portal prop.

Tomas Gonzalez
  • 188
  • 2
  • 8