[Imagery] Check for pending updates when unpausing
https://github.com/nasa/openmct/pull/1600#discussion_r119931468
This commit is contained in:
@@ -89,7 +89,7 @@ define(
|
|||||||
// Update displayable values to reflect latest image telemetry
|
// Update displayable values to reflect latest image telemetry
|
||||||
ImageryController.prototype.updateValues = function (datum) {
|
ImageryController.prototype.updateValues = function (datum) {
|
||||||
if (this.isPaused) {
|
if (this.isPaused) {
|
||||||
this.nextValue = datum;
|
this.nextDatum = datum;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.time = this.timeFormat.format(datum);
|
this.time = this.timeFormat.format(datum);
|
||||||
@@ -122,8 +122,10 @@ define(
|
|||||||
ImageryController.prototype.paused = function (state) {
|
ImageryController.prototype.paused = function (state) {
|
||||||
if (arguments.length > 0 && state !== this.isPaused) {
|
if (arguments.length > 0 && state !== this.isPaused) {
|
||||||
this.isPaused = state;
|
this.isPaused = state;
|
||||||
this.updateValues(this.nextValue);
|
if (this.nextDatum) {
|
||||||
delete this.nextValue;
|
this.updateValues(this.nextDatum);
|
||||||
|
delete this.nextDatum;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return this.isPaused;
|
return this.isPaused;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user