Change pointer event names for clarity

This commit is contained in:
Julian Stirling 2026-02-26 08:49:40 +00:00
parent de08bb1740
commit 1a9bb7f808

View file

@ -104,9 +104,9 @@ export default {
* This is a similar to the function in App.vue, however it uses an Interval rather * This is a similar to the function in App.vue, however it uses an Interval rather
* than the one in App.vue that uses key repeats. * than the one in App.vue that uses key repeats.
*/ */
jog(keyevent, x, y, z) { jog(pointerEvent, x, y, z) {
// Only respond to primary button (left mouse / primary touch) // Only respond to primary button (left mouse / primary touch)
if (keyevent.button !== 0) return; if (pointerEvent.button !== 0) return;
if (this.jogIntervalId) { if (this.jogIntervalId) {
clearInterval(this.jogIntervalId); clearInterval(this.jogIntervalId);
@ -114,7 +114,7 @@ export default {
// Designate this element to get the pointers next pointerup event wherever that // Designate this element to get the pointers next pointerup event wherever that
// pointer is. // pointer is.
keyevent.target.setPointerCapture(keyevent.pointerId); pointerEvent.target.setPointerCapture(pointerEvent.pointerId);
const navigationInvert = this.$store.state.navigationInvert; const navigationInvert = this.$store.state.navigationInvert;
let invokeJog = () => let invokeJog = () =>