Skip to content

Commit 73b206f

Browse files
committed
fix touchActive logic
1 parent eb2cdf1 commit 73b206f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/widgets/joystick.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class _ViamBaseJoystickState extends State<ViamBaseJoystick> {
3838
}
3939

4040
void callSetPower(StickDragDetails details) {
41-
touchActive = (details.x != 0 && details.y != 0);
41+
touchActive = (details.x != 0 || details.y != 0);
4242
widget.base.setPower(
4343
Vector3()..y = details.y * -1,
4444
Vector3()..z = details.x * -1,

0 commit comments

Comments
 (0)