Skip to content

Commit

Permalink
fix tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed May 10, 2024
1 parent e9443cd commit 3f068ed
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/react/TouchAreasControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ export const handleMovementStickDelta = (e?: { clientX, clientY }) => {
}

joystickPointer.joystickInner!.style.transform = `translate(${x}px, ${y}px)`
const vector = {
x: x / max,
y: 0,
z: y / max,
}
void contro.emit('movementUpdate', {
vector: {
x: x / max,
y: 0,
z: y / max,
},
vector,
soleVector: vector
})
}

Expand Down

0 comments on commit 3f068ed

Please sign in to comment.