Explorar el Código

Update src/composables/useRaycaster/index.ts

Co-authored-by: Tino Koch <17991193+Tinoooo@users.noreply.github.com>
Alvaro Saburido hace 2 años
padre
commit
b029984dd1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/composables/useRaycaster/index.ts

+ 1 - 1
src/composables/useRaycaster/index.ts

@@ -47,7 +47,7 @@ export function useRaycaster(): UseRaycasterReturn {
     pointer.value.y = -(event.clientY / window.innerHeight) * 2 + 1
   }
 
-  state?.renderer?.domElement.addEventListener('pointermove', onPointerMove) //TODO listener should be on canvas
+  state?.renderer?.domElement.addEventListener('pointermove', onPointerMove)
 
   onUnmounted(() => {
     state?.renderer?.domElement.removeEventListener('pointermove', onPointerMove)