1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-30 04:30:01 +02:00

Fix pinch zoom not working on resources

This commit is contained in:
Kamran Ahmed
2022-10-31 13:13:32 +04:00
parent 80b11c91af
commit 117dc41540

View File

@@ -53,11 +53,6 @@ export function InteractiveRoadmapRenderer(props: RoadmapProps) {
}
function clickListener(event: MouseEvent) {
const viewPortMeta = document.querySelector('meta[name=viewport]');
if (viewPortMeta) {
viewPortMeta.setAttribute('content', "initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0");
}
const targetGroup = (event?.target as HTMLElement)?.closest('g');
const groupId = targetGroup?.dataset?.groupId;
if (!targetGroup || !groupId) {