Skip to content

Commit c1195b1

Browse files
committed
try to fix movement of aim
1 parent 83cbd99 commit c1195b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/controls.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ class Controls {
8282
this.dispatch('shot1', convertCoordinatesToPixels(
8383
this.rootObject.offsetWidth,
8484
this.rootObject.offsetHeight,
85-
gp.axes[0],
86-
gp.axes[1]
85+
gp.axes[0].toFixed(1),
86+
gp.axes[1].toFixed(1)
8787
));
8888
}
8989

90-
this.moveAimToCoordinates(gp.axes[0], gp.axes[1])
90+
this.moveAimToCoordinates(gp.axes[0].toFixed(1), gp.axes[1].toFixed(1))
9191
}
9292
}
9393

0 commit comments

Comments
 (0)