follow wasn't working

This commit is contained in:
Matthias Wirth
2020-04-22 14:28:08 +02:00
parent 1ab03fd56e
commit 96d6cfa520
2 changed files with 8 additions and 4 deletions

View File

@@ -1164,7 +1164,7 @@ function parse_history() {
changeCenter("init");
if (globeIndex)
setInterval(checkMovement, 100);
setInterval(checkMovement, 50);
else
setInterval(checkMovement, 30);
@@ -3476,8 +3476,6 @@ function changeCenter(init) {
if (!onlySelected)
refreshTableInfo();
checkFollow();
if (!init && showTrace)
updateAddressBar();
}
@@ -3494,6 +3492,9 @@ function checkMovement() {
noMovement = 0;
}
if (noMovement == 0)
checkFollow();
checkMoveZoom = zoom;
checkMoveCenter[0] = center[0];
checkMoveCenter[1] = center[1];