The standard line in every blog, tech article, etc., that I've seen on this goes something like this:
So, first thing I do is open that page in FF on my PC, and, lo and behold, it says we have motion. And, even the MDN docs say that the above code is the correct test.
But, it seems like I'm testing for the existence of the constructor for an event object, not a capability of the device. And, unless the browser is actually going to conditionally define the constructor, it makes sense that it would always be there. I wonder if the test should be something like that below, based on the hope that the interval is a static property gleaned from the actual device. (Unfortunately, my phone doesn't support motion, so I don't have a way to test this.)
If not, then what is a correct test (one that will not report motion capability in FF in a device that doesn't have motion capability)?