Debounce keyboard repeats for smoother movement

This commit is contained in:
Julian Stirling 2026-02-13 01:02:55 +00:00
parent 61666a116b
commit 586d45aed3
2 changed files with 55 additions and 47 deletions

View file

@ -120,9 +120,9 @@ export default {
onMoveStep(payload) {
const navigationStepSize = this.$store.state.navigationStepSize;
const navigationInvert = this.$store.state.navigationInvert;
const x = x_steps * navigationStepSize.x * (navigationInvert.x ? -1 : 1);
const y = y_steps * navigationStepSize.y * (navigationInvert.y ? -1 : 1);
const z = z_steps * navigationStepSize.z * (navigationInvert.z ? -1 : 1);
const x = payload.x_steps * navigationStepSize.x * (navigationInvert.x ? -1 : 1);
const y = payload.y_steps * navigationStepSize.y * (navigationInvert.y ? -1 : 1);
const z = payload.z_steps * navigationStepSize.z * (navigationInvert.z ? -1 : 1);
this.invokeAction("stage", "jog", { x: x, y: y, z: z });
},