Anyone been able to use "deviceorientation" with your Framer projects? I am trying to print out my beta ( x ), gamma ( y ), and alpha ( z ) values to start, just to ensure I'm capturing the data. However, it will only print out my alpha ( z ) value. Any ideas?
orientation = (event) -> x = event.beta y = event.gamma z = event.alpha
window.addEventListener "deviceorientation", (orientation) -> # This will only print if it's print z print y