avonian/soundstage-vr

Clicking into canvas to move

Closed this issue · 3 comments

When everything loads users are forced to click into the canvas so it gains focus before they can use "wsad" to move around.

It's not a huge issue but I find myself having to explain to people they have to "click" the canvas first before they can move.

Anything that can be done to spare them from the mouse click?

Sure, canvas.focus(). We probably lost it during some refactoring.

pushed, canvas couldn't be focused because of tabindex (and I have no clue what else controls tabindex)

YES!!! I tried fixing this a while back and couldn't figure out why the focus alone wasn't enough, and it's been irking me for a couple of months.

Thank you!!! 😃