Skip to content

Commit c31238c

Browse files
committed
fix(analog-joystick): joystick position inverted
joystick shaft goes the opposite direction than the user moved it
1 parent 521dc42 commit c31238c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/analog-joystick-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class AnalogJoystickElement extends LitElement {
148148
id="knob"
149149
cx="13.6"
150150
cy="13.6"
151-
transform="translate(${2.5 * xValue}, ${2.5 * yValue})"
151+
transform="translate(${2.5 * -xValue}, ${2.5 * -yValue})"
152152
r="10.6"
153153
fill="url(#g-knob)"
154154
filter="url(#noise)"

0 commit comments

Comments
 (0)