mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 10:46:42 +00:00
Fix code to remove warnings in conductor (#2192)
This commit is contained in:
parent
d48cc2deee
commit
c3b7e7869e
@ -21,7 +21,7 @@
|
|||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
<template>
|
<template>
|
||||||
<div class="c-conductor"
|
<div class="c-conductor"
|
||||||
:class="[isFixed ? 'is-fixed-mode' : 'is-realtime-mode', panning ? 'status-panning' : '']">
|
:class="[isFixed ? 'is-fixed-mode' : 'is-realtime-mode']">
|
||||||
<form class="u-contents" ref="conductorForm"
|
<form class="u-contents" ref="conductorForm"
|
||||||
@submit="isFixed ? setBoundsFromView($event) : setOffsetsFromView($event)">
|
@submit="isFixed ? setBoundsFromView($event) : setOffsetsFromView($event)">
|
||||||
|
|
||||||
|
@ -203,11 +203,10 @@ export default {
|
|||||||
let bounds = this.openmct.time.bounds();
|
let bounds = this.openmct.time.bounds();
|
||||||
let deltaTime = bounds.end - bounds.start;
|
let deltaTime = bounds.end - bounds.start;
|
||||||
let newStart = bounds.start - percX * deltaTime;
|
let newStart = bounds.start - percX * deltaTime;
|
||||||
this.bounds = {
|
this.$emit('panAxis',{
|
||||||
start: newStart,
|
start: newStart,
|
||||||
end: newStart + deltaTime
|
end: newStart + deltaTime
|
||||||
};
|
});
|
||||||
this.$emit('panAxis', this.bounds);
|
|
||||||
this.dragging = false;
|
this.dragging = false;
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user