diff --git a/apps/scouting/frontend/src/scouter/components/ScoreMap.tsx b/apps/scouting/frontend/src/scouter/components/ScoreMap.tsx index 6b53525..253485c 100644 --- a/apps/scouting/frontend/src/scouter/components/ScoreMap.tsx +++ b/apps/scouting/frontend/src/scouter/components/ScoreMap.tsx @@ -108,9 +108,6 @@ export const ScoreMap: FC = ({ const imageRef = useRef(null); const [mapPoint, setMapPoint] = useState(currentPoint); const handleMapClick = (event: TouchEvent) => { - if (!isHolding) { - return; - } const containerElement = containerRef.current; const imageElement = imageRef.current; if (!(containerElement && imageElement)) { @@ -147,9 +144,14 @@ export const ScoreMap: FC = ({ { + onTouchMove={(event) => { + if (isHolding) { + handleMapClick(event); + } + }} + onTouchStart={(event) => { setHolding(true); + handleMapClick(event); }} onTouchEnd={() => { setHolding(false);