Skip to content

Commit

Permalink
[FE][Delete] : 전체 이벤트 버블링 막기 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
juwon5272 committed Dec 5, 2024
1 parent 8dfb7fc commit d8ad24f
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<MapCanvasForDraw
width={windowSize.width}
Expand Down

0 comments on commit d8ad24f

Please sign in to comment.