简体   繁体   中英

a-frame on mouse click cursor disappearing issue with aframe-extra version 3.8.6

I am using https://cdn.rawgit.com/donmccurdy/aframe-extras/v3.8.6/dist/aframe-extras.min.js aframe extra version 3.8.6 with aframe version 0.6.0 , on mouse clicked cursor is disappearing, need to pressed esc key everytime to get cursor back. can someone please help me into this issue.

It's intentional, so you won't have to move around constantly clicking around.

You can disable it quite easily by switching

look-controls="pointerLockEnabled: true"

to

look-controls="pointerLockEnabled: false"

I see your version also has the pointerLockEnabled property.


Nonetheless, i would recommend switching to the newest a-frame build + a-frame extras , since there was a ton of polishing and bug-fixes.


Glitch with pointerLockEnabled: true
Glitch with pointerLockEnabled: false
source here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM