-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Description
Description:
- A-Frame Version: 1.1.0 + previous 1.x.x versions
- Platform / Device: Tested on Chrome/Safari/Firefox – Macbook
- Reproducible Code Snippet or URL: basic aframe sandbox: https://ionized-sun-pasta.glitch.me
Steps to reproduce:
- enable wasd-controls
- hold any of the arrow-keys
- right-click while pressing an arrow-key
- camera/user continues to wander off and continue moving
I'm able to stop the wandering by repeatedly press random arrow keys to pause movement and resume expected behaviour.
Similar behaviour occurs with absolutely positioned overlays or popovers are opened (while the user is holding down an arrow/wasd key)
Potential fix:
omit right-click event from being captured (I don't know if this will work)
or
add event listener for right-click, and call in event handler for this event.
this.pause()
aframe/src/components/wasd-controls.js
Line 176 in f73047d
| onBlur: function () { |
I couldn't find a reported opened/closed issue for this bug, so apologies if this is a duplicate.
Metadata
Metadata
Assignees
Labels
No labels