Skip to content

Commit

Permalink
fix: actually removing event listener by setting capture option to tr…
Browse files Browse the repository at this point in the history
…ue (#1525)
  • Loading branch information
tampiland authored Mar 17, 2024
1 parent 4bfa879 commit c147c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export function Select({

return () => {
document.removeEventListener('pointerdown', pointerDown)
document.removeEventListener('pointermove', pointerMove)
document.removeEventListener('pointermove', pointerMove, true)
document.removeEventListener('pointerup', pointerUp)
}
}, [size.width, size.height, raycaster, camera, controls, gl])
Expand Down

0 comments on commit c147c2b

Please sign in to comment.