avoid jumps/getTrace when switching back to a tab in showTrace
This commit is contained in:
@@ -219,6 +219,8 @@ if (typeof document.hidden !== "undefined") { // Opera 12.10 and Firefox 18 and
|
||||
function handleVisibilityChange() {
|
||||
if (!document[hidden]) {
|
||||
fetchData();
|
||||
if (showTrace)
|
||||
return;
|
||||
if (SelectedPlane)
|
||||
getTrace(SelectedPlane, SelectedPlane.icao, {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user