From 975bbb2a1aa5fafc5ad87c8c424194b5031d3dcf Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Wed, 15 Jan 2020 16:38:07 +0100 Subject: [PATCH] 5 second refresh for Persistance mode was confusing people so the few that use it with a huge amount of tracks will have to suffer some lags. --- html/script.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/html/script.js b/html/script.js index d9d945c..0ab97cb 100644 --- a/html/script.js +++ b/html/script.js @@ -264,11 +264,7 @@ function setupPlane(hex, plane) { function fetchData() { clearTimeout(refreshId); - if (noVanish) { - refreshId = setTimeout(fetchData, 5000); - } else { - refreshId = setTimeout(fetchData, RefreshInterval); - } + refreshId = setTimeout(fetchData, RefreshInterval); if (PendingFetches > 0) return; for (var i in FetchPending) { @@ -713,7 +709,7 @@ function init_page() { // Force map to redraw if sidebar container is resized - use a timer to debounce $("#sidebar_container").on("resize", function() { clearTimeout(mapResizeTimeout); - mapResizeTimeout = setTimeout(updateMapSize, 10); + mapResizeTimeout = setTimeout(updateMapSize, 20); }); filterGroundVehicles(false);