Closed satelllte closed 5 months ago
[!NOTE] This is not a bug, but just a console warning and a small thing to improve. So please consider it.
three
@types/three
three-stdlib
@react-three/drei
[Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
Put passive: true here: https://github.com/pmndrs/three-stdlib/blob/017639d81eb65b3a69b334ec1792efcf6f4a2215/src/controls/OrbitControls.ts#L412
passive: true
Versions
three
: 0.163.0@types/three
: 0.163.0three-stdlib
: 2.29.6@react-three/drei
: 9.103.0Problem description:
Suggested solution:
Put
passive: true
here: https://github.com/pmndrs/three-stdlib/blob/017639d81eb65b3a69b334ec1792efcf6f4a2215/src/controls/OrbitControls.ts#L412