deviceorientation.json 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. {
  2. "title":"DeviceOrientation & DeviceMotion events",
  3. "description":"API for detecting orientation and motion events from the device running the browser.",
  4. "spec":"https://www.w3.org/TR/orientation-event/",
  5. "status":"cr",
  6. "links":[
  7. {
  8. "url":"https://www.html5rocks.com/en/tutorials/device/orientation/",
  9. "title":"HTML5 Rocks tutorial"
  10. },
  11. {
  12. "url":"https://raw.github.com/phiggins42/has.js/master/detect/features.js#native-orientation",
  13. "title":"has.js test"
  14. },
  15. {
  16. "url":"http://html5labs.interoperabilitybridges.com/prototypes/device-orientation-events/device-orientation-events/info",
  17. "title":"DeviceOrientation implementation prototype for IE10"
  18. },
  19. {
  20. "url":"http://aurelio.audero.it/demo/device-orientation-api-demo.html",
  21. "title":"Demo"
  22. }
  23. ],
  24. "bugs":[
  25. {
  26. "description":"`DeviceOrientationEvent.beta` has values between -90 and 90 on mobile Safari and between 180 and -180 on Firefox.\r\n`DeviceOrientationEvent.gamma` has values between -180 and 180 on mobile Safari and between 90 and -90 on Firefox.\r\nSee [Firefox reference](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent)\r\nand [Safari reference](https://developer.apple.com/library/safari/documentation/SafariDOMAdditions/Reference/DeviceOrientationEventClassRef/DeviceOrientationEvent/DeviceOrientationEvent.html#//apple_ref/javascript/instp/DeviceOrientationEvent/beta)"
  27. },
  28. {
  29. "description":"Safari on iOS doesn't implement the spec correctly, because alpha is arbitrary instead of relative to true north. Safari instead offers webkitCompassHeading`, which has the opposite sign to alpha and is also relative to magnetic north instead of true north. (see [details](https://github.com/w3c/deviceorientation/issues/6))"
  30. }
  31. ],
  32. "categories":[
  33. "JS API"
  34. ],
  35. "stats":{
  36. "ie":{
  37. "5.5":"n",
  38. "6":"n",
  39. "7":"n",
  40. "8":"n",
  41. "9":"n",
  42. "10":"n",
  43. "11":"a #1"
  44. },
  45. "edge":{
  46. "12":"y",
  47. "13":"y",
  48. "14":"y",
  49. "15":"y",
  50. "16":"y",
  51. "17":"y",
  52. "18":"y"
  53. },
  54. "firefox":{
  55. "2":"n",
  56. "3":"n",
  57. "3.5":"n",
  58. "3.6":"p",
  59. "4":"p",
  60. "5":"p",
  61. "6":"a",
  62. "7":"a",
  63. "8":"a",
  64. "9":"a",
  65. "10":"a",
  66. "11":"a",
  67. "12":"a",
  68. "13":"a",
  69. "14":"a",
  70. "15":"a",
  71. "16":"a",
  72. "17":"a",
  73. "18":"a",
  74. "19":"a",
  75. "20":"a",
  76. "21":"a",
  77. "22":"a",
  78. "23":"a",
  79. "24":"a",
  80. "25":"a",
  81. "26":"a",
  82. "27":"a",
  83. "28":"a",
  84. "29":"a",
  85. "30":"a",
  86. "31":"a",
  87. "32":"a",
  88. "33":"a",
  89. "34":"a",
  90. "35":"a",
  91. "36":"a",
  92. "37":"a",
  93. "38":"a",
  94. "39":"a",
  95. "40":"a",
  96. "41":"a",
  97. "42":"a",
  98. "43":"a",
  99. "44":"a",
  100. "45":"a",
  101. "46":"a",
  102. "47":"a",
  103. "48":"a",
  104. "49":"a",
  105. "50":"a",
  106. "51":"a",
  107. "52":"a",
  108. "53":"a",
  109. "54":"a",
  110. "55":"a",
  111. "56":"a",
  112. "57":"a",
  113. "58":"a",
  114. "59":"a",
  115. "60":"a",
  116. "61":"a",
  117. "62":"a"
  118. },
  119. "chrome":{
  120. "4":"n",
  121. "5":"n",
  122. "6":"n",
  123. "7":"a",
  124. "8":"a",
  125. "9":"a",
  126. "10":"a",
  127. "11":"a",
  128. "12":"a",
  129. "13":"a",
  130. "14":"a",
  131. "15":"a",
  132. "16":"a",
  133. "17":"a",
  134. "18":"a",
  135. "19":"a",
  136. "20":"a",
  137. "21":"a",
  138. "22":"a",
  139. "23":"a",
  140. "24":"a",
  141. "25":"a",
  142. "26":"a",
  143. "27":"a",
  144. "28":"a",
  145. "29":"a",
  146. "30":"a",
  147. "31":"a",
  148. "32":"a",
  149. "33":"a",
  150. "34":"a",
  151. "35":"a",
  152. "36":"a",
  153. "37":"a",
  154. "38":"a",
  155. "39":"a",
  156. "40":"a",
  157. "41":"a",
  158. "42":"a",
  159. "43":"a",
  160. "44":"a",
  161. "45":"a",
  162. "46":"a",
  163. "47":"a",
  164. "48":"a",
  165. "49":"a",
  166. "50":"a",
  167. "51":"a",
  168. "52":"a",
  169. "53":"a",
  170. "54":"a",
  171. "55":"a",
  172. "56":"a",
  173. "57":"a",
  174. "58":"a",
  175. "59":"a",
  176. "60":"a",
  177. "61":"a",
  178. "62":"a",
  179. "63":"a",
  180. "64":"a",
  181. "65":"a",
  182. "66":"a",
  183. "67":"a",
  184. "68":"a",
  185. "69":"a"
  186. },
  187. "safari":{
  188. "3.1":"n",
  189. "3.2":"n",
  190. "4":"n",
  191. "5":"n",
  192. "5.1":"n",
  193. "6":"n",
  194. "6.1":"n",
  195. "7":"n",
  196. "7.1":"n",
  197. "8":"n",
  198. "9":"n",
  199. "9.1":"n",
  200. "10":"n",
  201. "10.1":"n",
  202. "11":"n",
  203. "11.1":"n",
  204. "TP":"n"
  205. },
  206. "opera":{
  207. "9":"n",
  208. "9.5-9.6":"n",
  209. "10.0-10.1":"n",
  210. "10.5":"n",
  211. "10.6":"n",
  212. "11":"n",
  213. "11.1":"n",
  214. "11.5":"n",
  215. "11.6":"n",
  216. "12":"n",
  217. "12.1":"n",
  218. "15":"a",
  219. "16":"a",
  220. "17":"a",
  221. "18":"a",
  222. "19":"a",
  223. "20":"a",
  224. "21":"a",
  225. "22":"a",
  226. "23":"a",
  227. "24":"a",
  228. "25":"a",
  229. "26":"a",
  230. "27":"a",
  231. "28":"a",
  232. "29":"a",
  233. "30":"a",
  234. "31":"a",
  235. "32":"a",
  236. "33":"a",
  237. "34":"a",
  238. "35":"a",
  239. "36":"a",
  240. "37":"a",
  241. "38":"a",
  242. "39":"a",
  243. "40":"a",
  244. "41":"a",
  245. "42":"a",
  246. "43":"a",
  247. "44":"a",
  248. "45":"a",
  249. "46":"a",
  250. "47":"a",
  251. "48":"a",
  252. "49":"a",
  253. "50":"a",
  254. "51":"a",
  255. "52":"a"
  256. },
  257. "ios_saf":{
  258. "3.2":"n",
  259. "4.0-4.1":"n",
  260. "4.2-4.3":"a",
  261. "5.0-5.1":"a",
  262. "6.0-6.1":"a",
  263. "7.0-7.1":"a",
  264. "8":"a",
  265. "8.1-8.4":"a",
  266. "9.0-9.2":"a",
  267. "9.3":"a",
  268. "10.0-10.2":"a",
  269. "10.3":"a",
  270. "11.0-11.2":"a",
  271. "11.3":"a"
  272. },
  273. "op_mini":{
  274. "all":"n"
  275. },
  276. "android":{
  277. "2.1":"n",
  278. "2.2":"n",
  279. "2.3":"n",
  280. "3":"a",
  281. "4":"a",
  282. "4.1":"a",
  283. "4.2-4.3":"a",
  284. "4.4":"a",
  285. "4.4.3-4.4.4":"a",
  286. "62":"a"
  287. },
  288. "bb":{
  289. "7":"n",
  290. "10":"a"
  291. },
  292. "op_mob":{
  293. "10":"n",
  294. "11":"n",
  295. "11.1":"n",
  296. "11.5":"n",
  297. "12":"y",
  298. "12.1":"y",
  299. "37":"a"
  300. },
  301. "and_chr":{
  302. "66":"a"
  303. },
  304. "and_ff":{
  305. "57":"a"
  306. },
  307. "ie_mob":{
  308. "10":"n",
  309. "11":"y"
  310. },
  311. "and_uc":{
  312. "11.8":"a"
  313. },
  314. "samsung":{
  315. "4":"a",
  316. "5":"a",
  317. "6.2":"a"
  318. },
  319. "and_qq":{
  320. "1.2":"a"
  321. },
  322. "baidu":{
  323. "7.12":"a"
  324. }
  325. },
  326. "notes":"Partial support refers to the lack of compassneedscalibration event. Partial support also refers to the lack of devicemotion event support for Chrome 30- and Opera. Opera Mobile 14 lost the ondevicemotion event support. Firefox 3.6, 4 and 5 support the non-standard [MozOrientation](https://developer.mozilla.org/en/DOM/MozOrientation) event.",
  327. "notes_by_num":{
  328. "1":"`compassneedscalibration` supported in IE11 only for compatible devices with Windows 8.1+."
  329. },
  330. "usage_perc_y":2.11,
  331. "usage_perc_a":89.71,
  332. "ucprefix":false,
  333. "parent":"",
  334. "keywords":"ondeviceorientation,ondevicemotion",
  335. "ie_id":"deviceorientation,devicemotion",
  336. "chrome_id":"5874690627207168,5556931766779904",
  337. "firefox_id":"device-orientation",
  338. "webkit_id":"specification-deviceorientation-events",
  339. "shown":true
  340. }