Disabling pointer events on GPX tracks.

This commit is contained in:
Eric van der Vlist 2022-10-09 20:59:43 +02:00
parent f9a6fb1d18
commit 05c560285a
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@ const Gpx: React.FC<{ gpx: any }> = (props) => {
)}`;
}, '');
return <path d={d} className={`track ${props.gpx.subtype}`} />;
return (
<path d={d} className={`track ${props.gpx.subtype}`} pointerEvents='none' />
);
};
export default Gpx;