From 04373731a2e1c987fb643d80c32e578e13174933 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 4 Nov 2023 22:21:56 +0100 Subject: Scroll to city circle. --- play.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3