From aef171e4d297770c37bb04ce1286f6d807c19f65 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Tue, 17 Feb 2026 06:55:09 +0100 Subject: [PATCH] dotbot/frontend: fix wrong y coordinate returned on map clicked --- dotbot/frontend/src/DotBotsMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotbot/frontend/src/DotBotsMap.js b/dotbot/frontend/src/DotBotsMap.js index 4dc768b1..73a4346b 100644 --- a/dotbot/frontend/src/DotBotsMap.js +++ b/dotbot/frontend/src/DotBotsMap.js @@ -164,7 +164,7 @@ export const DotBotsMap = (props) => { const dim = event.target.getBoundingClientRect(); const x = event.clientX - dim.left; const y = event.clientY - dim.top; - props.mapClicked(x * props.areaSize.width / props.mapSize, y * props.areaSize.height / props.mapSize); + props.mapClicked(x * props.areaSize.width / props.mapSize, y * props.areaSize.width / props.mapSize); }; const updateDisplayGrid = (event) => {