{"action":"created","issue":{"url":"https://api.github.com/repos/jeromeetienne/AR.js/issues/416","repository_url":"https://api.github.com/repos/jeromeetienne/AR.js","labels_url":"https://api.github.com/repos/jeromeetienne/AR.js/issues/416/labels{/name}","comments_url":"https://api.github.com/repos/jeromeetienne/AR.js/issues/416/comments","events_url":"https://api.github.com/repos/jeromeetienne/AR.js/issues/416/events","html_url":"https://github.com/jeromeetienne/AR.js/issues/416","id":363014274,"node_id":"MDU6SXNzdWUzNjMwMTQyNzQ=","number":416,"title":"Mobile browser doesn't seem to understand the clicking event","user":{"login":"aidanikuz","id":43434843,"node_id":"MDQ6VXNlcjQzNDM0ODQz","avatar_url":"https://avatars2.githubusercontent.com/u/43434843?v=4","gravatar_id":"","url":"https://api.github.com/users/aidanikuz","html_url":"https://github.com/aidanikuz","followers_url":"https://api.github.com/users/aidanikuz/followers","following_url":"https://api.github.com/users/aidanikuz/following{/other_user}","gists_url":"https://api.github.com/users/aidanikuz/gists{/gist_id}","starred_url":"https://api.github.com/users/aidanikuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidanikuz/subscriptions","organizations_url":"https://api.github.com/users/aidanikuz/orgs","repos_url":"https://api.github.com/users/aidanikuz/repos","events_url":"https://api.github.com/users/aidanikuz/events{/privacy}","received_events_url":"https://api.github.com/users/aidanikuz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-24T04:48:38Z","updated_at":"2018-09-27T12:51:58Z","closed_at":null,"author_association":"NONE","body":"<!-- Please don't delete this template or we'll close your issue -->\r\n<!-- Before creating an issue please make sure you are using the latest version of AR.js. -->\r\n<!-- Before creating an issue please make a search on open and closed issues, maybe your question is already answered. -->\r\n**Do you want to request a *feature* or report a *bug*?**\r\nReport a bug\r\n\r\n<!-- Please ask questions on StackOverflow or the AR.js Gitter (https://gitter.im/AR-js). -->\r\n<!-- Issues which contain questions or support requests will be closed. -->\r\n\r\n**What is the current behavior?**\r\nI have a clicking event in javascript but on the mobile browser it doesn't seem to \"read\" the function. The event fires after 3 seconds.\r\n\r\nI have a 3d object that appears on a marker. there is a text which is hidden by default. the event is, when the object is clicked the text appears. However, after 3 seconds without doing anything the text appears. \r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n```\r\n<script>\r\n    AFRAME.registerComponent('object-model', {\r\n      init: function () {\r\n        const castle = document.querySelector(\"#castle\");\r\n        const text = document.getElementById('text-box');\r\n        castle.addEventListener('click', function (event) {\r\n          if(text.object3D.visible == false && event.detail.cursorEl){\r\n            text.object3D.visible = true;\r\n          } \r\n        });\r\n      }\r\n    });\r\n </script>\r\n\r\n<a-scene id=\"thescene\" cursor=\"rayOrigin: mouse\" embedded arjs=\"sourceType: webcam; trackingMethod: best;\">\r\n      <a-light type=\"point\" color=\"white\" position=\"0 5 0\" intensity=\"3\"></a-light>\r\n      <a-assets>\r\n        <a-asset-item id=\"mega\" src=\"mega/scene.gltf\"></a-asset-item>\r\n      </a-assets>\r\n      \r\n      <a-marker preset='custom' type='pattern' url='tiger.patt'>\r\n        <a-entity gltf-model=\"#mega\" scale=\"0.05 0.05 0.05\" position=\"0 0 0\" rotation=\"-90 0 0\" object-model id=\"castle\"></a-entity>\r\n        <a-entity geometry=\"primitive: plane;\" material=\"opacity: 0\">\r\n          <a-text value=\"Clicked!\" visible=\"false\" id=\"text-box\" position=\"-0.425 0.293 -0.531\" rotation=\"-84.347 54.042 -51.893\"></a-text>\r\n        </a-entity>\r\n      </a-marker>\r\n\r\n      <!-- add a basic camera -->\r\n      <!-- So object will land on marker -->\r\n      <a-entity camera>\r\n      </a-entity>\r\n    </a-scene>\r\n```\r\n\r\n<!-- A great way to do this is to provide an external url, (like a gist, codepen), with a short description on the issue you experiencing -->\r\n<!-- Check if the issue can be reproduced in one of our demos/examples -->\r\n<!-- Make sure your issue is not originating from third party source ex: (from A-Frame, Tango, JSARToolkit) -->\r\n\r\n**What is the expected behavior?**\r\n\r\n**If this is a feature request, what is motivation or use case for changing the behavior?**\r\n\r\n**Please mention other relevant information such as the browser version, Operating System and Device Name**\r\n\r\nSamsung S9. using google chrome.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jeromeetienne/AR.js/issues/comments/425078800","html_url":"https://github.com/jeromeetienne/AR.js/issues/416#issuecomment-425078800","issue_url":"https://api.github.com/repos/jeromeetienne/AR.js/issues/416","id":425078800,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTA3ODgwMA==","user":{"login":"LaurenceNairne","id":5938208,"node_id":"MDQ6VXNlcjU5MzgyMDg=","avatar_url":"https://avatars3.githubusercontent.com/u/5938208?v=4","gravatar_id":"","url":"https://api.github.com/users/LaurenceNairne","html_url":"https://github.com/LaurenceNairne","followers_url":"https://api.github.com/users/LaurenceNairne/followers","following_url":"https://api.github.com/users/LaurenceNairne/following{/other_user}","gists_url":"https://api.github.com/users/LaurenceNairne/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurenceNairne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurenceNairne/subscriptions","organizations_url":"https://api.github.com/users/LaurenceNairne/orgs","repos_url":"https://api.github.com/users/LaurenceNairne/repos","events_url":"https://api.github.com/users/LaurenceNairne/events{/privacy}","received_events_url":"https://api.github.com/users/LaurenceNairne/received_events","type":"User","site_admin":false},"created_at":"2018-09-27T12:51:58Z","updated_at":"2018-09-27T12:51:58Z","author_association":"NONE","body":"Hey,\r\n\r\n> The event fires after 3 seconds.\r\n\r\nThis isn't a AR.js bug, this is a feature of a-frame called \"fuse\". To turn this off you need to add to your cursor attribute `cursor=\"fuse: false; rayOrigin: mouse\"`"}}
{"actor":{"display_login":"LaurenceNairne"}}