add priority to time conductor boundsChanged event listeners

This commit is contained in:
David Tsay 2024-11-14 10:50:32 -08:00
parent 860bd06c8f
commit b7cb18c494
3 changed files with 7 additions and 3 deletions

View File

@ -156,7 +156,11 @@ export default {
this.setTimeSystem(this.copy(this.openmct.time.getTimeSystem()));
this.openmct.time.on(TIME_CONTEXT_EVENTS.boundsChanged, _.throttle(this.handleNewBounds, 300));
this.openmct.time.on(
TIME_CONTEXT_EVENTS.boundsChanged,
_.throttle(this.handleNewBounds, 300),
this.openmct.priority.HIGH
);
this.openmct.time.on(TIME_CONTEXT_EVENTS.timeSystemChanged, this.setTimeSystem);
this.openmct.time.on(TIME_CONTEXT_EVENTS.modeChanged, this.setMode);
},

View File

@ -173,7 +173,7 @@ export default {
this.setViewFromOffsets(offsets);
if (this.timeContext) {
this.timeContext.on(TIME_CONTEXT_EVENTS.boundsChanged, this.handleNewBounds);
this.timeContext.on(TIME_CONTEXT_EVENTS.boundsChanged, this.handleNewBounds, this.openmct.priority.HIGH);
this.timeContext.on(TIME_CONTEXT_EVENTS.clockOffsetsChanged, this.setViewFromOffsets);
} else {
this.openmct.time.on(TIME_CONTEXT_EVENTS.boundsChanged, this.handleNewBounds);

View File

@ -205,7 +205,7 @@ export default {
this.timeContext = this.openmct.time.getContextForView(this.objectPath);
this.timeContext.on(TIME_CONTEXT_EVENTS.clockChanged, this.setViewFromClock);
this.timeContext.on(TIME_CONTEXT_EVENTS.boundsChanged, this.setBounds);
this.timeContext.on(TIME_CONTEXT_EVENTS.boundsChanged, this.setBounds, this.openmct.priority.HIGH);
this.setViewFromClock(this.timeContext.getClock());
this.setBounds(this.timeContext.getBounds());