animate only if already visible
This commit is contained in:
parent
0878bd2ddc
commit
497776c642
|
|
@ -1133,8 +1133,12 @@ function refreshHighlighted() {
|
||||||
if (y > mapCanvas.height() - h) {
|
if (y > mapCanvas.height() - h) {
|
||||||
y -= h;
|
y -= h;
|
||||||
}
|
}
|
||||||
|
if (infoBox.css('visibility', 'visible')) {
|
||||||
|
infoBox.animate({ left: x, top: y }, 500);
|
||||||
|
} else {
|
||||||
|
infoBox.css({ left: x, top: y }, 500);
|
||||||
|
}
|
||||||
infoBox.fadeIn(100);
|
infoBox.fadeIn(100);
|
||||||
infoBox.animate({ left: x, top: y }, 500);
|
|
||||||
|
|
||||||
if (highlighted.flight !== null && highlighted.flight !== "") {
|
if (highlighted.flight !== null && highlighted.flight !== "") {
|
||||||
$('#highlighted_callsign').text(highlighted.flight);
|
$('#highlighted_callsign').text(highlighted.flight);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue