From a71173b778087fe27af0928814604024a61f61ff Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Thu, 12 Aug 2021 10:57:53 +1000 Subject: [PATCH] Fix leak in map menu --- src/components/map/MapMenu.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/map/MapMenu.tsx b/src/components/map/MapMenu.tsx index d9e4a63..f46e519 100644 --- a/src/components/map/MapMenu.tsx +++ b/src/components/map/MapMenu.tsx @@ -78,6 +78,7 @@ function MapMenu({ return () => { if (modalContentNode) { document.body.removeEventListener("pointerup", handleInteraction); + document.body.removeEventListener("wheel", handleInteraction); } }; }, [modalContentNode, excludeNode, onRequestClose]);