mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
add priority to time conductor boundsChanged
event listeners
This commit is contained in:
parent
860bd06c8f
commit
b7cb18c494
@ -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);
|
||||
},
|
||||
|
@ -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);
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user