Fix leak in map menu
This commit is contained in:
parent
7e7179b7e5
commit
a71173b778
@ -78,6 +78,7 @@ function MapMenu({
|
|||||||
return () => {
|
return () => {
|
||||||
if (modalContentNode) {
|
if (modalContentNode) {
|
||||||
document.body.removeEventListener("pointerup", handleInteraction);
|
document.body.removeEventListener("pointerup", handleInteraction);
|
||||||
|
document.body.removeEventListener("wheel", handleInteraction);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}, [modalContentNode, excludeNode, onRequestClose]);
|
}, [modalContentNode, excludeNode, onRequestClose]);
|
||||||
|
Loading…
Reference in New Issue
Block a user