summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/actions/map.js
diff options
context:
space:
mode:
Diffstat (limited to 'opendc-web/opendc-web-ui/src/actions/map.js')
-rw-r--r--opendc-web/opendc-web-ui/src/actions/map.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/opendc-web/opendc-web-ui/src/actions/map.js b/opendc-web/opendc-web-ui/src/actions/map.js
index 0d49d849..09196dca 100644
--- a/opendc-web/opendc-web-ui/src/actions/map.js
+++ b/opendc-web/opendc-web-ui/src/actions/map.js
@@ -64,6 +64,7 @@ export function setMapPositionWithBoundsCheck(x, y) {
const state = getState()
const scaledMapSize = MAP_SIZE_IN_PIXELS * state.map.scale
+
const updatedX =
x > 0
? 0