Skip to content

Commit

Permalink
[FE][Feat] : zoomslider에서 이벤트 버블링 방지
Browse files Browse the repository at this point in the history
  • Loading branch information
juwon5272 committed Dec 5, 2024
1 parent 07f7f79 commit 8dfb7fc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/src/component/zoomslider/ZoomSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@ export const ZoomSlider = ({ map, redrawCanvas }: IZoomSliderProps) => {
};

return (
<div className="flex h-48 w-9 flex-col items-center rounded bg-white shadow">
<div
className="flex h-48 w-9 flex-col items-center rounded bg-white shadow"
onTouchMove={e => {
e.stopPropagation();
e.preventDefault();
}}
>
<ZoomButton label={<MdOutlineAdd />} onClick={() => handleZoomChange(1)} />
<ZoomSliderInput zoomLevel={zoomLevel} onSliderChange={handleSliderChange} />
<ZoomButton label={<MdRemove />} onClick={() => handleZoomChange(-1)} />
Expand Down

0 comments on commit 8dfb7fc

Please sign in to comment.