From b798afb959a48fcb233c44fd97e6c71842ce8127 Mon Sep 17 00:00:00 2001 From: Robert Long <robert@robertlong.me> Date: Thu, 12 Apr 2018 16:15:55 -0700 Subject: [PATCH] Set fadeTime to 0 to fix most instances of the cursor getting stuck on iOS and FF Android. --- src/components/virtual-gamepad-controls.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/virtual-gamepad-controls.js b/src/components/virtual-gamepad-controls.js index 265dc9276..a0d4cab4f 100644 --- a/src/components/virtual-gamepad-controls.js +++ b/src/components/virtual-gamepad-controls.js @@ -16,12 +16,14 @@ AFRAME.registerComponent("virtual-gamepad-controls", { const leftStick = nipplejs.create({ zone: leftTouchZone, - color: "white" + color: "white", + fadeTime: 0 }); const rightStick = nipplejs.create({ zone: rightTouchZone, - color: "white" + color: "white", + fadeTime: 0 }); this.onMoveJoystickChanged = this.onMoveJoystickChanged.bind(this); -- GitLab