fix(CrossControl): step size was not applied correctly (#805)

fixes #804
This commit is contained in:
th33xitus authored and GitHub committed 2022-05-15 19:11:25 +02:00
1 parent 8ddf13081f
commit 087d9b7104
1 file changed
+4 -2
@@ -376,8 +376,6 @@ export default class CrossControl extends Mixins(BaseMixin, ControlMixin) {
mdiEngineOff = mdiEngineOff
mdiHome = mdiHome
private stepSize = this.stepsReversed[this.selectedCrossStep]
get actionButton(): string {
return this.$store.state.gui.control.actionButton ?? this.defaultActionButton
}
@@ -393,6 +391,10 @@ export default class CrossControl extends Mixins(BaseMixin, ControlMixin) {
this.$store.dispatch('gui/saveSetting', { name: 'control.selectedCrossStep', value: newVal })
}
get stepSize(): number {
return this.stepsReversed[this.selectedCrossStep]
}
/**
* Axes reverse states
*/