scenevr / client

:punch: Web client
7 stars 2 forks source link

Make the d-pads only work when dragging inside them #36

Open bnolan opened 9 years ago

bnolan commented 9 years ago

From @sminnee: The d-pads should only work if you start the drag from inside them; right now if you drag elsewhere it seems to try and guess, which is a bit confusing.

This is because the code in pointer-lock-controls assumes that anything int he bottom 25% of the screen is a d-pad touch. Improve the code to only detect touches that start inside the d-pad.