Skip to content
Snippets Groups Projects
Commit 042b28de authored by joni's avatar joni
Browse files

lint

parent fa655e15
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,6 @@ const TARGET_TYPE_NONE = 1;
const TARGET_TYPE_INTERACTABLE = 2;
const TARGET_TYPE_UI = 4;
const TARGET_TYPE_INTERACTABLE_OR_UI = TARGET_TYPE_INTERACTABLE | TARGET_TYPE_UI;
const virtualJoystickCutoff = 0.8;
AFRAME.registerComponent("cursor-controller", {
dependencies: ["raycaster", "line"],
......@@ -277,7 +276,7 @@ AFRAME.registerComponent("cursor-controller", {
this.mousePos.set(touch.clientX / window.innerWidth * 2 - 1, -(touch.clientY / window.innerHeight) * 2 + 1);
},
handleTouchEnd: function(touch) {
handleTouchEnd: function() {
// TODO: Should we emit cursor-release just in case
// hasPointingDevice changed just before this function call?
if (!this.isMobile || this.hasPointingDevice) return;
......
......@@ -38,7 +38,6 @@ AFRAME.registerComponent("look-on-mobile", {
tick(t, dt) {
if (!this.data.enabled) return;
const scene = this.el.sceneEl;
const rotation = this.rotation;
const hmdEuler = this.hmdEuler;
const pitchObject = this.lookControls.pitchObject;
const yawObject = this.lookControls.yawObject;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment