stalgiag / p5.xr

a library that helps turn p5.js sketches into immersive experiences using WebXR
GNU Lesser General Public License v2.1
117 stars 25 forks source link

Fixed XR button functionality #107

Closed msub2 closed 3 years ago

msub2 commented 3 years ago

This fixes being unable to end an immersive VR session, as it was erroring out when trying to call .cancel() on a null this.xrHitTestSource. It also updates the XR button title text back to Enter VR/AR once they've exited. Spacing change came from the linter.

stalgiag commented 3 years ago

Great thank you!

@all-contributors please add @msub2 for code

allcontributors[bot] commented 3 years ago

@stalgiag

I've put up a pull request to add @msub2! :tada: