diff --git a/frontend/src/component/canvasWithMap/canvasWithMapforDraw/MapProviderForDraw.tsx b/frontend/src/component/canvasWithMap/canvasWithMapforDraw/MapProviderForDraw.tsx index 5b91b22..729b485 100644 --- a/frontend/src/component/canvasWithMap/canvasWithMapforDraw/MapProviderForDraw.tsx +++ b/frontend/src/component/canvasWithMap/canvasWithMapforDraw/MapProviderForDraw.tsx @@ -29,20 +29,6 @@ export const MapProviderForDraw = ({ width, height }: ICanvasScreenProps) => { }; }, []); - useEffect(() => { - const preventDefault = (e: TouchEvent) => { - e.preventDefault(); - }; - - document.body.style.overflow = 'hidden'; - document.addEventListener('touchmove', preventDefault, { passive: false }); - - return () => { - document.body.style.overflow = 'auto'; - document.removeEventListener('touchmove', preventDefault); - }; - }, []); - return ( { }; return ( -
+
{ + e.stopPropagation(); + e.preventDefault(); + }} + > {/* 검색 입력 */}
{ }; return ( -
+
{ + e.stopPropagation(); + e.preventDefault(); + }} + > } onClick={() => handleZoomChange(1)} /> } onClick={() => handleZoomChange(-1)} /> diff --git a/frontend/src/pages/DrawRoute.tsx b/frontend/src/pages/DrawRoute.tsx index ab16dd5..dd79c0a 100644 --- a/frontend/src/pages/DrawRoute.tsx +++ b/frontend/src/pages/DrawRoute.tsx @@ -130,7 +130,7 @@ export const DrawRoute = () => { return (
-
+