summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-11-04 22:21:56 +0100
committerTor Andersson <tor@ccxvii.net>2023-11-05 00:02:44 +0100
commit04373731a2e1c987fb643d80c32e578e13174933 (patch)
tree2cc948cb91a00bc4de584e5f7442c48922618cc9
parente68ae8525302a324265ec58e955c9baf885e5221 (diff)
downloadalgeria-04373731a2e1c987fb643d80c32e578e13174933.tar.gz
Scroll to city circle.
-rw-r--r--play.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/play.js b/play.js
index f7fc6a1..919ddcd 100644
--- a/play.js
+++ b/play.js
@@ -965,7 +965,10 @@ function on_blur_area_tip(x) { // eslint-disable-line no-unused-vars
}
function on_click_area_tip(x) { // eslint-disable-line no-unused-vars
- scroll_into_view(ui.areas[x])
+ if (ui.areas_u[x])
+ scroll_into_view(ui.areas_u[x])
+ else
+ scroll_into_view(ui.areas[x])
}
function sub_area_name(_match, p1, _offset, _string) {