I can't get my code to work to trigger a function upon a click event. Both on desktop or mobile chrome browser it doesn't work. If I enter to inspector mode I recognize that in a small area of the object I can click it and it will triggered, but if I leave the inspector (strg+alt+i) it doesn't work. it seems to me that something will not hit the right point to trigger the event. This makes me crazy. I hope someone could give me a good hint to solve my problem. thanks in advance. My code is online testable under https://glitch.com/~ede21-arjslocationtutorial
Have problem to get touch or mouseclick trigger the click event of aframe objects
314 Views Asked by Jan SChulz At
1
There are 1 best solutions below
Related Questions in AFRAME
- Using WebGPURenderer in A-Frame
- a-frame 1.5.0 envMap with no-lights
- AR motion design exhibition in the real space of the city
- how to add 2d video instead of 3d model in mind-ar by using its scripts?
- I get undefined when I am using js to create a-entity with aframe component
- New to A-frame & HTML Coding - my model won't load, what am I doing wrong?
- how to decompress khr_draco_mesh_compression in a-frame (ar.js)?
- Why are mouseenter and mouseleave startEvents not triggering correctly?
- How do I make the position of a box a variable in Aframe or set the position x, y-10, z?
- How to use threejs version 0.83.0 with aframe version 1.3.0?
- Trouble in using gltf-model in aframe-react
- AFrame and ar.js - custom markers not working
- how to add zoom-in and zoom-out feature in aframe react js
- How can I solve Error in loading marker on worker 404
- 3D Text different positioning across different devices - 8th Wall and A-Frame
Related Questions in AR.JS
- arjs not displaying gltf model
- A-frame gltf could not found
- Is it possible to rotate a cube environment map 180 degrees around Y axis?
- Play audio once when target is found A-frame & Ar.js
- how to use Ar.js in react pwa?
- Browser interaction to trigger video playback
- Struggling with custom markers in AR.JS
- how to create image tracker with ar.js
- How do I pass multiple clips to animation-mixer
- Ar.js on SvelteKit Webcam Resizing problem
- I want to put a Youtube URL in a HTML5 video tag and play it
- Unmount aFrame on Sveltekit
- How to add custom marker in ar.js?
- location-based Ar: position is not accurate
- Why wont my AR model load with my image own marker?
Related Questions in CLICKLISTENER
- ClickListener on ViewPager2 with RecyclerView not responding to clicks
- Kotlin: lateinit var needs to be initialized
- How to execute any code while the button is pressed?
- Abstract fun invoke() not implemented
- ClickListener added to view of MotionLayout prevents layout from responding to events
- Kotlin RecyclerView onItemClick
- Recyclerview + CardView OnClickListener
- Android click listener on View work in strange manner
- When using LibGdx openURI I get an error -12
- how to detect Navigation Buttons Clicks in a service ?Android
- Have problem to get touch or mouseclick trigger the click event of aframe objects
- how set ClickListener on drawable in Drawable class in android?
- setOnClickListener not fired on Layout
- Displaying two images from android device
- Why does my clickListener make my app crash only the second time i call it
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I did not try to edit the code but I think the problem comes from your cursor and raycaster properties. They should be on a camera entity, not on the a-scene entity. A-Frame creates a default one but you can create it yourself and set this properties. The cursor will change when you hover the entities, then it should work properly ;)