From 1e203151a1c58bead3e5b12d6d4434712bc709b2 Mon Sep 17 00:00:00 2001 From: tampiland Date: Tue, 20 Jun 2023 11:00:26 +0200 Subject: [PATCH] fix: actually removing event listener by setting capture option to true --- src/web/Select.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/Select.tsx b/src/web/Select.tsx index d9acde843..033050e52 100644 --- a/src/web/Select.tsx +++ b/src/web/Select.tsx @@ -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])