pmndrs / react-three-next

React Three Fiber, Threejs, Nextjs starter
https://react-three-next.vercel.app/
MIT License
2.52k stars 342 forks source link

Mouse position always 0 #128

Closed marcinwenger closed 1 year ago

marcinwenger commented 1 year ago

Is there anything preventing this to work? mouse.x is always 0

useFrame((state) => {
  console.log('mouse', state.mouse.x)
})
marcinwenger commented 1 year ago

I'm sorry I was missing this:

useCursor(hovered)